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 ba52f2c..25ff899 100644 --- a/c/common.cpp +++ b/c/common.cpp @@ -4,6 +4,7 @@ /* Win32Error: Exception for Windows API errors. */ +Win32Error::Win32Error() : m_dwErr(GetLastError()) {} Win32Error::Win32Error(const DWORD dwErr) : m_dwErr(dwErr) {} Win32Error::~Win32Error() @@ -48,7 +49,7 @@ Library::Library(const TCHAR* const tszLibrary) { m_hModule = LoadLibrary(tszLibrary); if (!m_hModule) - throw Win32Error(GetLastError()); + throw Win32Error(); } Library::~Library() |