summaryrefslogtreecommitdiff
path: root/win/win32service.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-24 23:02:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-24 23:02:03 +0000
commit50fb079808cf6ff76fb8213c3469e435774ae42f (patch)
tree1ac2104f2f88ed4f8d89d8ace9cf83ca0a1dcd60 /win/win32service.cpp
parent5a3ee26c5544376f552a4f6417a43b510514fe3c (diff)
Properly name the windows service error constants and put proper descriptions in the error strings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10251 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'win/win32service.cpp')
-rw-r--r--win/win32service.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/win/win32service.cpp b/win/win32service.cpp
index ab1fae140..62d75178c 100644
--- a/win/win32service.cpp
+++ b/win/win32service.cpp
@@ -84,7 +84,7 @@ void SetServiceRunning()
BOOL success = UpdateSCMStatus(SERVICE_RUNNING, NO_ERROR, 0, 0, 0);
if (!success)
{
- terminateService(22, GetLastError());
+ terminateService(18, GetLastError());
return;
}
}
@@ -184,14 +184,14 @@ VOID ServiceMain(DWORD argc, LPTSTR *argv)
serviceStatusHandle = RegisterServiceCtrlHandler("InspIRCd", (LPHANDLER_FUNCTION)ServiceCtrlHandler);
if (!serviceStatusHandle)
{
- terminateService(18, GetLastError());
+ terminateService(17, GetLastError());
return;
}
success = UpdateSCMStatus(SERVICE_START_PENDING, NO_ERROR, 0, 1, 1000);
if (!success)
{
- terminateService(19, GetLastError());
+ terminateService(18, GetLastError());
return;
}
@@ -200,14 +200,14 @@ VOID ServiceMain(DWORD argc, LPTSTR *argv)
if (!killServiceEvent || !hThreadEvent)
{
- terminateService(20, GetLastError());
+ terminateService(19, GetLastError());
return;
}
success = UpdateSCMStatus(SERVICE_START_PENDING, NO_ERROR, 0, 2, 1000);
if (!success)
{
- terminateService(21, GetLastError());
+ terminateService(18, GetLastError());
return;
}