mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 11:29:49 +00:00
oleaut32: Check OANOCACHE variable only on process attach.
This commit is contained in:
parent
78fda5cea0
commit
f50ead6358
|
@ -875,7 +875,8 @@ BOOL WINAPI DllMain(HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpvReserved)
|
|||
{
|
||||
static const WCHAR oanocacheW[] = {'o','a','n','o','c','a','c','h','e',0};
|
||||
|
||||
bstr_cache_enabled = !GetEnvironmentVariableW(oanocacheW, NULL, 0);
|
||||
if(fdwReason == DLL_PROCESS_ATTACH)
|
||||
bstr_cache_enabled = !GetEnvironmentVariableW(oanocacheW, NULL, 0);
|
||||
|
||||
return OLEAUTPS_DllMain( hInstDll, fdwReason, lpvReserved );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue