msasn1: 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-23 10:06:44 +01:00
parent 9981715809
commit e0ff40332f
2 changed files with 1 additions and 16 deletions

View File

@ -1,7 +1,7 @@
MODULE = msasn1.dll MODULE = msasn1.dll
IMPORTLIB = msasn1 IMPORTLIB = msasn1
EXTRADLLFLAGS = -mno-cygwin EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \ C_SRCS = \
main.c main.c

View File

@ -29,21 +29,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(msasn1); WINE_DEFAULT_DEBUG_CHANNEL(msasn1);
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;
}
ASN1module_t WINAPI ASN1_CreateModule(ASN1uint32_t ver, ASN1encodingrule_e rule, ASN1uint32_t flags, ASN1module_t WINAPI ASN1_CreateModule(ASN1uint32_t ver, ASN1encodingrule_e rule, ASN1uint32_t flags,
ASN1uint32_t pdu, const ASN1GenericFun_t encoder[], ASN1uint32_t pdu, const ASN1GenericFun_t encoder[],
const ASN1GenericFun_t decoder[], const ASN1FreeFun_t freemem[], const ASN1GenericFun_t decoder[], const ASN1FreeFun_t freemem[],