mfreadwrite: Use --prefer_native instead of DLL_WINE_PREATTACH.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-03-02 10:54:47 +01:00
parent 93e23c5d40
commit 768ff9ab12
2 changed files with 1 additions and 3 deletions

View File

@ -2,7 +2,7 @@ MODULE = mfreadwrite.dll
IMPORTLIB = mfreadwrite IMPORTLIB = mfreadwrite
IMPORTS = mfuuid uuid mfplat ole32 IMPORTS = mfuuid uuid mfplat ole32
EXTRADLLFLAGS = -mno-cygwin EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \ C_SRCS = \
reader.c \ reader.c \

View File

@ -51,8 +51,6 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
{ {
switch (reason) switch (reason)
{ {
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
mfinstance = instance; mfinstance = instance;
DisableThreadLibraryCalls(instance); DisableThreadLibraryCalls(instance);