From ca2d58210875a8ab1b52c07dc31401de6d89d110 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 13 Dec 2011 21:37:59 +0000 Subject: Use LoadLibraryA instead of bare LoadLibrary so things work if used in an amalgamation and the app is compiled in Unicode mode. --- src/utils/dyn_load/dyn_load.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/dyn_load') diff --git a/src/utils/dyn_load/dyn_load.cpp b/src/utils/dyn_load/dyn_load.cpp index 7f42218f9..06b8c5df3 100644 --- a/src/utils/dyn_load/dyn_load.cpp +++ b/src/utils/dyn_load/dyn_load.cpp @@ -39,7 +39,7 @@ Dynamically_Loaded_Library::Dynamically_Loaded_Library( raise_runtime_loader_exception(lib_name, dlerror()); #elif defined(BOTAN_TARGET_OS_HAS_LOADLIBRARY) - lib = ::LoadLibrary(lib_name.c_str()); + lib = ::LoadLibraryA(lib_name.c_str()); if(!lib) raise_runtime_loader_exception(lib_name, "LoadLibrary failed"); -- cgit v1.2.3