From c65bbeb62d8b5e4a463075aff97d26380e83902c Mon Sep 17 00:00:00 2001 From: Ian Schmidt Date: Sat, 23 Oct 1999 14:48:50 +0000 Subject: [PATCH] Now inits the policy cache when shell32 is first instantiated. Matches Windoze behavior. --- dlls/shell32/shell32_main.c | 6 ++++++ 1 file changed, 6 insertions(+) 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;