summaryrefslogtreecommitdiff
path: root/external/xmlsec/windows7.patch.1
blob: ccefc96c1c013717b776e3a614c6dcb617c33fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 21bbcb04b62352331a15a0b8463ebb27a9b858bc Mon Sep 17 00:00:00 2001
From: Aleksey Sanin <aleksey@aleksey.com>
Date: Thu, 12 Nov 2020 11:17:01 -0800
Subject: [PATCH] Fix DLL loading on windows

---
 src/dl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dl.c b/src/dl.c
index e934fe4e..a511df43 100644
--- a/src/dl.c
+++ b/src/dl.c
@@ -148,7 +148,7 @@ xmlSecCryptoDLLibraryCreate(const xmlChar* name) {
 #endif /* XMLSEC_DL_LIBLTDL */
 
 #ifdef XMLSEC_DL_WIN32
-#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP)
+#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
     lib->handle = LoadLibraryA((char*)lib->filename);
 #else
     LPWSTR wcLibFilename = xmlSecWin32ConvertUtf8ToUnicode(lib->filename);
-- 
2.25.1