diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-15 13:13:50 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-15 13:13:50 +0200 |
commit | 8f1ead168558dac9cf4c10e269f568e15b5f8faf (patch) | |
tree | b749f5abfa5720f491a56740f61f6de00b9e0bfc /c/common.cpp | |
parent | 9d5ee7f8bd62f11cb0d9019cc4a715f265452bb7 (diff) | |
download | EpisodeBrowser-8f1ead168558dac9cf4c10e269f568e15b5f8faf.tar.gz |
Add support for Prolog exceptions.
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."); } |