Commit 7e82f018 authored by jan.koester's avatar jan.koester
Browse files

test

parent fe86203b
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -3390,6 +3390,9 @@ VOID ReportSvcStatus(DWORD dwCurrentState, DWORD dwWin32ExitCode, DWORD dwWaitHi
    g_ServiceStatus.dwCurrentState  = dwCurrentState;
    g_ServiceStatus.dwWin32ExitCode = dwWin32ExitCode;
    g_ServiceStatus.dwWaitHint      = dwWaitHint;
    g_ServiceStatus.dwControlsAccepted =
        (dwCurrentState == SERVICE_START_PENDING) ? 0
                                                  : SERVICE_ACCEPT_STOP;

    if (dwCurrentState == SERVICE_RUNNING || dwCurrentState == SERVICE_STOPPED) {
        g_ServiceStatus.dwCheckPoint = 0;
@@ -3429,7 +3432,6 @@ VOID WINAPI ServiceMain(DWORD dwArgc, LPTSTR* lpszArgv) {

    // Initialize service status
    g_ServiceStatus.dwServiceType = SERVICE_WIN32_OWN_PROCESS;
    g_ServiceStatus.dwControlsAccepted = SERVICE_ACCEPT_STOP;
    ReportSvcStatus(SERVICE_START_PENDING, NO_ERROR, 10000);

    // 2. Create the stop event