Module: wine Branch: master Commit: f50ead6358f0b8fc271dba05360ce866a16cacce URL: http://source.winehq.org/git/wine.git/?a=commit;h=f50ead6358f0b8fc271dba0536...
Author: Jacek Caban jacek@codeweavers.com Date: Wed Dec 11 16:15:02 2013 +0100
oleaut32: Check OANOCACHE variable only on process attach.
---
dlls/oleaut32/oleaut.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/oleaut.c b/dlls/oleaut32/oleaut.c index 60ff191..4cd5135 100644 --- a/dlls/oleaut32/oleaut.c +++ b/dlls/oleaut32/oleaut.c @@ -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 ); }