msftedit: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8b5bf20c4a
commit
cd6cc56958
|
@ -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
|
||||||
|
|
|
@ -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" );
|
||||||
|
|
Loading…
Reference in New Issue