Now inits the policy cache when shell32 is first instantiated.
Matches Windoze behavior.
This commit is contained in:
parent
3498c08a35
commit
c65bbeb62d
|
@ -26,6 +26,7 @@
|
||||||
#include "shell32_main.h"
|
#include "shell32_main.h"
|
||||||
#include "shlguid.h"
|
#include "shlguid.h"
|
||||||
#include "wine/undocshell.h"
|
#include "wine/undocshell.h"
|
||||||
|
#include "shpolicy.h"
|
||||||
|
|
||||||
DECLARE_DEBUG_CHANNEL(exec)
|
DECLARE_DEBUG_CHANNEL(exec)
|
||||||
DECLARE_DEBUG_CHANNEL(shell)
|
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");
|
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;
|
shell32_hInstance = hinstDLL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue