diff options
Diffstat (limited to 'c/win.h')
-rw-r--r-- | c/win.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -74,7 +74,7 @@ T* Library::GetProcAddress(const char* const szProc) noexcept template <typename T> inline T Require(const T x) { - if (!x) throw Win32Error{}; + if (!x) throw Win32Error(); return x; } @@ -83,7 +83,7 @@ template <typename T> inline T Prefer(const T x) { if (!x) { - EBMessageBox(Win32Error{}.What(), L"System Error", MB_ICONWARNING); + EBMessageBox(Win32Error().What(), L"System Error", MB_ICONWARNING); return (T)0; } return x; |