prntvpt: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
790ab8d24c
commit
88313bd112
|
@ -2,7 +2,7 @@ MODULE = prntvpt.dll
|
||||||
IMPORTLIB = prntvpt
|
IMPORTLIB = prntvpt
|
||||||
IMPORTS = winspool ole32 oleaut32
|
IMPORTS = winspool ole32 oleaut32
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mno-cygwin
|
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
main.c \
|
main.c \
|
||||||
|
|
|
@ -43,21 +43,6 @@ static WCHAR *heap_strdupW(const WCHAR *src)
|
||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
|
|
||||||
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(hinst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
HRESULT WINAPI PTReleaseMemory(PVOID mem)
|
HRESULT WINAPI PTReleaseMemory(PVOID mem)
|
||||||
{
|
{
|
||||||
heap_free(mem);
|
heap_free(mem);
|
||||||
|
|
Loading…
Reference in New Issue