diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-01 16:21:37 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-01 16:21:37 +0300 |
commit | 669a246c175a002e368404fc0037379900bcca04 (patch) | |
tree | 2d50a6775f2ede118fdd6ab3f1ad05a726a891b4 /um/service/test | |
parent | um: strip the 'lib' prefix from namespace names (diff) | |
download | windows7-drivers-669a246c175a002e368404fc0037379900bcca04.tar.gz windows7-drivers-669a246c175a002e368404fc0037379900bcca04.zip |
service: refactoring
* No more compiler-specific macros.
Diffstat (limited to '')
-rw-r--r-- | um/service/test/windows_error.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/um/service/test/windows_error.cpp b/um/service/test/windows_error.cpp index 5785e99..1334620 100644 --- a/um/service/test/windows_error.cpp +++ b/um/service/test/windows_error.cpp @@ -9,16 +9,14 @@ #include <exception> #include <iostream> -#include <system_error> int main() { try { - throw std::system_error( + throw service::windows_error::make( ERROR_FILE_NOT_FOUND, - service::WindowsErrorCategory::get(), - LIBSERVICE_ERROR_PREFIX); + __FILE__, __LINE__, __FUNCTION__); } catch (const std::exception& e) { |