aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/error.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-11 14:29:25 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-11 14:29:25 +0300
commitf9228256ae6f52f7fcc7717a53780586bed10e15 (patch)
treec021a8b75f728f2f9ea2b75591653eacf17fd334 /src/error.hpp
parentturn on /W4 (diff)
downloadprivilege-check-f9228256ae6f52f7fcc7717a53780586bed10e15.tar.gz
privilege-check-f9228256ae6f52f7fcc7717a53780586bed10e15.zip
hardening
Diffstat (limited to '')
-rw-r--r--src/error.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/error.hpp b/src/error.hpp
index e8f47a4..0c5b917 100644
--- a/src/error.hpp
+++ b/src/error.hpp
@@ -7,6 +7,7 @@
#include <Windows.h>
+#include <exception>
#include <system_error>
typedef std::system_error Error;
@@ -24,7 +25,7 @@ namespace error
throw make(function_name);
}
- void report(const Error& e)
+ void report(const std::exception& e)
{
MessageBoxA(NULL, e.what(), NULL, MB_OK);
}