From 95b95032f907ef1cd17ee7a9a1768010a825d61d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 25 Jun 2017 17:38:11 +0200 Subject: [PATCH] Fix building on win32 if _UNICODE is defined Explicitly use LoadLibraryA() instead of the LoadLibrary() macro, which may expand to LoadLibraryW() depending on build configuration. --- expat/lib/xmlparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 76f078e2..7c87b981 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -749,7 +749,7 @@ typedef BOOLEAN (APIENTRY *RTLGENRANDOM_FUNC)(PVOID, ULONG); static int writeRandomBytes_RtlGenRandom(void * target, size_t count) { int success = 0; /* full count bytes written? */ - const HMODULE advapi32 = LoadLibrary("ADVAPI32.DLL"); + const HMODULE advapi32 = LoadLibraryA("ADVAPI32.DLL"); if (advapi32) { const RTLGENRANDOM_FUNC RtlGenRandom