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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-02-26 10:23:01 +01:00
parent 8b5bf20c4a
commit cd6cc56958
2 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,7 @@
MODULE = msftedit.dll MODULE = msftedit.dll
IMPORTS = uuid riched20 IMPORTS = uuid riched20
EXTRADLLFLAGS = -mno-cygwin EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \ C_SRCS = \
msftedit_main.c msftedit_main.c

View File

@ -46,8 +46,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, 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:
/* explicitly load riched20 since it creates the window classes at dll attach time */ /* explicitly load riched20 since it creates the window classes at dll attach time */
richedit = LoadLibraryW( L"riched20.dll" ); richedit = LoadLibraryW( L"riched20.dll" );