From b26acbb5b86f229b4c7c5f26d4e546ad0346dfec Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Wed, 15 Feb 2012 15:37:24 +0000 Subject: [PATCH] Installer: Workaround for failed admin detection in very rare cases --- Plugins/PluginRecycleManager/RecycleManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Plugins/PluginRecycleManager/RecycleManager.cpp b/Plugins/PluginRecycleManager/RecycleManager.cpp index 6e28a173..d94a271a 100644 --- a/Plugins/PluginRecycleManager/RecycleManager.cpp +++ b/Plugins/PluginRecycleManager/RecycleManager.cpp @@ -154,6 +154,8 @@ PLUGIN_EXPORT double Update(void* data) } while (FindNextFile(hSearch, &fd)); + FindClose(hSearch); + if (count != data.lastCount) { data.lastCount = count;