From 3229dee5bb0bd1e13f30752ccae556513b5cdcac Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 24 Aug 2008 21:05:15 +0000 Subject: No names for the service specific errors, probably wont ever name them as theyre never shown in linux git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10245 e03df62e-2008-0410-955e-edbf42e46eb7 --- win/win32service.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'win') diff --git a/win/win32service.cpp b/win/win32service.cpp index 42eaa998b..ab1fae140 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(6, GetLastError()); + terminateService(22, GetLastError()); return; } } @@ -184,14 +184,14 @@ VOID ServiceMain(DWORD argc, LPTSTR *argv) serviceStatusHandle = RegisterServiceCtrlHandler("InspIRCd", (LPHANDLER_FUNCTION)ServiceCtrlHandler); if (!serviceStatusHandle) { - terminateService(1, GetLastError()); + terminateService(18, GetLastError()); return; } success = UpdateSCMStatus(SERVICE_START_PENDING, NO_ERROR, 0, 1, 1000); if (!success) { - terminateService(2, GetLastError()); + terminateService(19, GetLastError()); return; } @@ -200,14 +200,14 @@ VOID ServiceMain(DWORD argc, LPTSTR *argv) if (!killServiceEvent || !hThreadEvent) { - terminateService(99, GetLastError()); + terminateService(20, GetLastError()); return; } success = UpdateSCMStatus(SERVICE_START_PENDING, NO_ERROR, 0, 2, 1000); if (!success) { - terminateService(2, GetLastError()); + terminateService(21, GetLastError()); return; } -- cgit v1.2.3