mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 18:43:37 +00:00
evr: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5edf6d15a7
commit
dc382414df
|
@ -3,7 +3,7 @@ IMPORTLIB = evr
|
|||
IMPORTS = mfuuid strmiids strmbase uuid dxguid ole32 oleaut32 user32 d3d9 dxva2
|
||||
DELAYIMPORTS = mfplat
|
||||
|
||||
EXTRADLLFLAGS = -mno-cygwin
|
||||
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
|
||||
|
||||
C_SRCS = \
|
||||
evr.c \
|
||||
|
|
|
@ -36,16 +36,15 @@ static HINSTANCE instance_evr;
|
|||
|
||||
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
|
||||
{
|
||||
if (reason == DLL_WINE_PREATTACH)
|
||||
return FALSE; /* prefer native version */
|
||||
else if (reason == DLL_PROCESS_ATTACH)
|
||||
switch (reason)
|
||||
{
|
||||
instance_evr = instance;
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(instance);
|
||||
}
|
||||
else if (reason == DLL_PROCESS_DETACH && !reserved)
|
||||
{
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
if (reserved) break;
|
||||
strmbase_release_typelibs();
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue