Commit dc382414 authored by Alexandre Julliard's avatar Alexandre Julliard

evr: Use --prefer-native instead of DLL_WINE_PREATTACH.

parent 5edf6d15
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment