Now inits the policy cache when shell32 is first instantiated.

Matches Windoze behavior.
This commit is contained in:
Ian Schmidt 1999-10-23 14:48:50 +00:00 committed by Alexandre Julliard
parent 3498c08a35
commit c65bbeb62d
1 changed files with 6 additions and 0 deletions

View File

@ -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;