aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/um/service/src/service_manager.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-05-01 16:21:37 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-05-01 16:21:37 +0300
commit669a246c175a002e368404fc0037379900bcca04 (patch)
tree2d50a6775f2ede118fdd6ab3f1ad05a726a891b4 /um/service/src/service_manager.cpp
parentum: strip the 'lib' prefix from namespace names (diff)
downloadwindows7-drivers-669a246c175a002e368404fc0037379900bcca04.tar.gz
windows7-drivers-669a246c175a002e368404fc0037379900bcca04.zip
service: refactoring
* No more compiler-specific macros.
Diffstat (limited to '')
-rw-r--r--um/service/src/service_manager.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/um/service/src/service_manager.cpp b/um/service/src/service_manager.cpp
index 58377ed..48c6bfe 100644
--- a/um/service/src/service_manager.cpp
+++ b/um/service/src/service_manager.cpp
@@ -7,8 +7,6 @@
#include <Windows.h>
-#include <system_error>
-
namespace service
{
ServiceManager ServiceManager::open()
@@ -18,8 +16,7 @@ namespace service
if (NULL == raw)
{
const auto ec = GetLastError();
- throw std::system_error(
- ec, WindowsErrorCategory::get(), LIBSERVICE_ERROR_PREFIX);
+ throw windows_error::make(ec, __FILE__, __LINE__, __FUNCTION__);
}
return ServiceHandle(raw);