diff options
Diffstat (limited to 'c/win.cpp')
-rw-r--r-- | c/win.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -170,7 +170,7 @@ const wchar_t* Win32Error::What() const noexcept InternetError::InternetError(DWORD codeSystem) { if (codeSystem != ERROR_INTERNET_EXTENDED_ERROR) - throw Win32Error{codeSystem}; + throw Win32Error(codeSystem); DWORD len, cch; InternetGetLastResponseInfo(&code, nullptr, &len); @@ -178,12 +178,12 @@ InternetError::InternetError(DWORD codeSystem) cch = len+1; m_szMsg = new char[cch]; if (!InternetGetLastResponseInfoA(&code, m_szMsg, &cch)) - throw Win32Error{}; + throw Win32Error(); cch = len+1; m_wszMsg = new wchar_t[cch]; if (!InternetGetLastResponseInfo(&code, m_wszMsg, &len)) - throw Win32Error{}; + throw Win32Error(); } InternetError::~InternetError() @@ -216,7 +216,7 @@ Library::Library(const wchar_t* const lib) { m_hModule = LoadLibrary(lib); if (!m_hModule) - throw Win32Error{}; + throw Win32Error(); } Library::~Library() |