diff options
Diffstat (limited to 'src/utils/dyn_load/dyn_load.cpp')
-rw-r--r-- | src/utils/dyn_load/dyn_load.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/dyn_load/dyn_load.cpp b/src/utils/dyn_load/dyn_load.cpp index 5f3814778..4a8cb16fa 100644 --- a/src/utils/dyn_load/dyn_load.cpp +++ b/src/utils/dyn_load/dyn_load.cpp @@ -54,7 +54,7 @@ Dynamically_Loaded_Library::~Dynamically_Loaded_Library() #if defined(BOTAN_TARGET_OS_HAS_DLOPEN) ::dlclose(lib); #elif defined(BOTAN_TARGET_OS_HAS_LOADLIBRARY) - ::FreeLibrary(lib); + ::FreeLibrary((HMODULE)lib); #endif } @@ -65,7 +65,7 @@ void* Dynamically_Loaded_Library::resolve_symbol(const std::string& symbol) #if defined(BOTAN_TARGET_OS_HAS_DLOPEN) addr = ::dlsym(lib, symbol.c_str()); #elif defined(BOTAN_TARGET_OS_HAS_LOADLIBRARY) - addr = ::GetProcAddress(lib, symbol.c_str()); + addr = ::GetProcAddress((HMODULE)lib, symbol.c_str()); #endif if(!addr) |