Mercurial > hg > orthanc
diff Plugins/Engine/SharedLibrary.cpp @ 893:f57802f8b4dc plugins
plugins for windows
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 16 Jun 2014 16:14:56 +0200 |
parents | 4066e6f2d134 |
children | a13ccd93df28 |
line wrap: on
line diff
--- a/Plugins/Engine/SharedLibrary.cpp Mon Jun 16 15:41:13 2014 +0200 +++ b/Plugins/Engine/SharedLibrary.cpp Mon Jun 16 16:14:56 2014 +0200 @@ -52,7 +52,7 @@ { #if defined(_WIN32) handle_ = ::LoadLibraryA(path.c_str()); - if (handle == NULL) + if (handle_ == NULL) { LOG(ERROR) << "LoadLibrary(" << path << ") failed: Error " << ::GetLastError(); throw OrthancException(ErrorCode_SharedLibrary); @@ -93,7 +93,7 @@ } - void* SharedLibrary::GetFunctionInternal(const std::string& name) + SharedLibrary::FunctionPointer SharedLibrary::GetFunctionInternal(const std::string& name) { if (!handle_) { @@ -110,9 +110,9 @@ } - void* SharedLibrary::GetFunction(const std::string& name) + SharedLibrary::FunctionPointer SharedLibrary::GetFunction(const std::string& name) { - void* result = GetFunctionInternal(name); + SharedLibrary::FunctionPointer result = GetFunctionInternal(name); if (result == NULL) {