diff options
Diffstat (limited to 'c/common.cpp')
-rw-r--r-- | c/common.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c/common.cpp b/c/common.cpp index 89cc426..dd84742 100644 --- a/c/common.cpp +++ b/c/common.cpp @@ -31,7 +31,8 @@ TCHAR *TszFromSz(const char *sz, int iCp) Library::Library(const TCHAR *tszLibrary) { - if (!(m_hModule = LoadLibrary(tszLibrary))) + m_hModule = LoadLibrary(tszLibrary); + if (!m_hModule) throw std::invalid_argument("Library not found."); } |