diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c index 39fd751bf23..4d4c8e2aac8 100644 --- a/dlls/shell32/shell32_main.c +++ b/dlls/shell32/shell32_main.c @@ -26,6 +26,7 @@ #include "shell32_main.h" #include "shlguid.h" #include "wine/undocshell.h" +#include "shpolicy.h" DECLARE_DEBUG_CHANNEL(exec) DECLARE_DEBUG_CHANNEL(shell) @@ -784,6 +785,11 @@ BOOL WINAPI Shell32LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) { ERR_(shell)("shell32.dll instantiated twice in one address space!\n"); } + else + { + /* we only want to call this the first time shell32 is instantiated */ + SHInitRestricted(NULL, NULL); + } shell32_hInstance = hinstDLL;