From 496a007da36846d2a837df248356cd141b596b31 Mon Sep 17 00:00:00 2001 From: Paul Hollinsky Date: Sun, 30 May 2021 02:57:18 -0700 Subject: [PATCH] Windows: Correct dynamic load helper when _UNICODE is defined --- include/icsneo/platform/windows/dynamiclib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/icsneo/platform/windows/dynamiclib.h b/include/icsneo/platform/windows/dynamiclib.h index 5fe3378..d40b1f3 100644 --- a/include/icsneo/platform/windows/dynamiclib.h +++ b/include/icsneo/platform/windows/dynamiclib.h @@ -12,7 +12,7 @@ // MSVC does not have the ability to specify a destructor #define ICSNEO_DESTRUCTOR -#define icsneo_dynamicLibraryLoad() LoadLibrary("icsneoc.dll") +#define icsneo_dynamicLibraryLoad() LoadLibrary(TEXT("icsneoc.dll")) #define icsneo_dynamicLibraryGetFunction(handle, func) GetProcAddress((HMODULE) handle, func) #define icsneo_dynamicLibraryClose(handle) FreeLibrary((HMODULE) handle)