From a3a0fc94e2eaf43ce2d95621a500c3045f745749 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 24 Feb 2021 10:27:53 +0100 Subject: [PATCH] ncrypt: Use --prefer-native instead of DLL_WINE_PREATTACH. Signed-off-by: Alexandre Julliard --- dlls/ncrypt/Makefile.in | 2 +- dlls/ncrypt/main.c | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/dlls/ncrypt/Makefile.in b/dlls/ncrypt/Makefile.in index c387c35d854..9e6c9f5ff9a 100644 --- a/dlls/ncrypt/Makefile.in +++ b/dlls/ncrypt/Makefile.in @@ -1,6 +1,6 @@ MODULE = ncrypt.dll -EXTRADLLFLAGS = -mno-cygwin +EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native C_SRCS = \ main.c diff --git a/dlls/ncrypt/main.c b/dlls/ncrypt/main.c index a8dda3c54a0..f23b239d93f 100644 --- a/dlls/ncrypt/main.c +++ b/dlls/ncrypt/main.c @@ -27,22 +27,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(ncrypt); -BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) -{ - TRACE("(%p, %u, %p)\n", instance, reason, reserved); - - switch (reason) - { - case DLL_WINE_PREATTACH: - return FALSE; /* prefer native version */ - case DLL_PROCESS_ATTACH: - DisableThreadLibraryCalls(instance); - break; - } - - return TRUE; -} - SECURITY_STATUS WINAPI NCryptCreatePersistedKey(NCRYPT_PROV_HANDLE provider, NCRYPT_KEY_HANDLE *key, const WCHAR *algid, const WCHAR *name, DWORD keyspec, DWORD flags)