mfplat: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0ace8475f9
commit
de2a6d9b38
|
@ -2,7 +2,7 @@ MODULE = mfplat.dll
|
||||||
IMPORTLIB = mfplat
|
IMPORTLIB = mfplat
|
||||||
IMPORTS = advapi32 ole32 mfuuid propsys rtworkq
|
IMPORTS = advapi32 ole32 mfuuid propsys rtworkq
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mno-cygwin
|
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
buffer.c \
|
buffer.c \
|
||||||
|
|
|
@ -702,20 +702,6 @@ static BOOL GUIDFromString(LPCWSTR s, GUID *id)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch (reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(instance);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static HRESULT register_transform(const CLSID *clsid, const WCHAR *name, UINT32 flags,
|
static HRESULT register_transform(const CLSID *clsid, const WCHAR *name, UINT32 flags,
|
||||||
UINT32 cinput, const MFT_REGISTER_TYPE_INFO *input_types, UINT32 coutput,
|
UINT32 cinput, const MFT_REGISTER_TYPE_INFO *input_types, UINT32 coutput,
|
||||||
const MFT_REGISTER_TYPE_INFO *output_types, IMFAttributes *attributes)
|
const MFT_REGISTER_TYPE_INFO *output_types, IMFAttributes *attributes)
|
||||||
|
|
Loading…
Reference in New Issue