aboutsummaryrefslogtreecommitdiff
path: root/c/common.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-15 13:13:50 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-15 13:13:50 +0200
commit8f1ead168558dac9cf4c10e269f568e15b5f8faf (patch)
treeb749f5abfa5720f491a56740f61f6de00b9e0bfc /c/common.cpp
parent9d5ee7f8bd62f11cb0d9019cc4a715f265452bb7 (diff)
downloadEpisodeBrowser-8f1ead168558dac9cf4c10e269f568e15b5f8faf.tar.gz
Add support for Prolog exceptions.
Diffstat (limited to 'c/common.cpp')
-rw-r--r--c/common.cpp3
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.");
}