d3drm: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b4c4593059
commit
7526f9d434
|
@ -2,7 +2,7 @@ MODULE = d3drm.dll
|
|||
IMPORTLIB = d3drm
|
||||
IMPORTS = d3dxof ddraw
|
||||
|
||||
EXTRADLLFLAGS = -mno-cygwin
|
||||
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
|
||||
|
||||
C_SRCS = \
|
||||
d3drm.c \
|
||||
|
|
|
@ -20,22 +20,6 @@
|
|||
#include "initguid.h"
|
||||
#include "d3drm_private.h"
|
||||
|
||||
/***********************************************************************
|
||||
* DllMain (D3DRM.@)
|
||||
*/
|
||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved)
|
||||
{
|
||||
switch(reason)
|
||||
{
|
||||
case DLL_WINE_PREATTACH:
|
||||
return FALSE; /* prefer native version */
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls( inst );
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void d3drm_object_init(struct d3drm_object *object, const char *classname)
|
||||
{
|
||||
object->ref = 1;
|
||||
|
|
Loading…
Reference in New Issue