Skip to content

Commit 21bbcb0

Browse files
committed
Fix DLL loading on windows
1 parent 838b4e8 commit 21bbcb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ xmlSecCryptoDLLibraryCreate(const xmlChar* name) {
148148
#endif /* XMLSEC_DL_LIBLTDL */
149149

150150
#ifdef XMLSEC_DL_WIN32
151-
#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP)
151+
#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
152152
lib->handle = LoadLibraryA((char*)lib->filename);
153153
#else
154154
LPWSTR wcLibFilename = xmlSecWin32ConvertUtf8ToUnicode(lib->filename);

0 commit comments

Comments
 (0)