mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
Now inits the policy cache when shell32 is first instantiated.
Matches Windoze behavior.
This commit is contained in:
parent
3498c08a35
commit
c65bbeb62d
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue