Index: reactos/dll/win32/shell32/folders.cpp =================================================================== --- reactos/dll/win32/shell32/folders.cpp (revision 73422) +++ reactos/dll/win32/shell32/folders.cpp (working copy) @@ -87,7 +87,7 @@ return S_OK; } -void InitIconOverlays(void) +static void InitIconOverlays(void) { HKEY hKey; DWORD dwIndex, dwResult, dwSize; @@ -161,6 +161,8 @@ if(!SHGetPathFromIDListW(pidl, szPath)) return FALSE; + if (!Handlers) + InitIconOverlays(); HighestPriority = 101; IconIndex = NumIconOverlayHandlers; Index: reactos/dll/win32/shell32/shell32.cpp =================================================================== --- reactos/dll/win32/shell32/shell32.cpp (revision 73422) +++ reactos/dll/win32/shell32/shell32.cpp (working copy) @@ -307,9 +307,9 @@ InitCtrls.dwICC = ICC_WIN95_CLASSES | ICC_DATE_CLASSES | ICC_USEREX_CLASSES; InitCommonControlsEx(&InitCtrls); + /* Bad idea, initialization in DllMain! */ SIC_Initialize(); InitChangeNotifications(); - InitIconOverlays(); } else if (dwReason == DLL_PROCESS_DETACH) { Index: reactos/dll/win32/shell32/wine/shell32_main.h =================================================================== --- reactos/dll/win32/shell32/wine/shell32_main.h (revision 73422) +++ reactos/dll/win32/shell32/wine/shell32_main.h (working copy) @@ -109,7 +109,6 @@ /* Change Notification */ void InitChangeNotifications(void) DECLSPEC_HIDDEN; void FreeChangeNotifications(void) DECLSPEC_HIDDEN; -void InitIconOverlays(void); /* file operation */ #define ASK_DELETE_FILE 1