diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2016-03-29 11:40:05 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2016-03-29 11:40:05 +0200 |
commit | 8d1d08489414f0f21fae3c030e7088143a717104 (patch) | |
tree | 4f028bd89bbec92919c7414423f9f60506c87638 /ACE | |
parent | c0edb7b7ff7b3678e9666bd963e0e7a764e9637e (diff) | |
download | ATCD-8d1d08489414f0f21fae3c030e7088143a717104.tar.gz |
Set errno when OpenSCManager fails
Diffstat (limited to 'ACE')
-rw-r--r-- | ACE/ace/NT_Service.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ACE/ace/NT_Service.cpp b/ACE/ace/NT_Service.cpp index 2c3e4813e48..2cfc1544890 100644 --- a/ACE/ace/NT_Service.cpp +++ b/ACE/ace/NT_Service.cpp @@ -202,7 +202,10 @@ ACE_NT_Service::insert (DWORD start_type, 0, SC_MANAGER_ALL_ACCESS); if (sc_mgr == 0) - return -1; + { + ACE_OS::set_errno_to_last_error(); + return -1; + } SC_HANDLE sh = ACE_TEXT_CreateService (sc_mgr, this->name (), |