aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-12-13 21:37:59 +0000
committerlloyd <[email protected]>2011-12-13 21:37:59 +0000
commitca2d58210875a8ab1b52c07dc31401de6d89d110 (patch)
tree951739182f9e53f67c8114da51454f59bccd7cd6
parent804b3dc90d2b1421ee41a51dbfdcb56142927cc0 (diff)
Use LoadLibraryA instead of bare LoadLibrary so things work if used in
an amalgamation and the app is compiled in Unicode mode.
-rw-r--r--src/utils/dyn_load/dyn_load.cpp2
1 files changed, 1 insertions, 1 deletions
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");