Description
Noticed while investigating CORE-14269.
—
Line 268 should obviously be moved before line 263.
127 ScmGetDriverStatus(PSERVICE lpService,
|
...
|
263 lpService->Status.dwCurrentState = SERVICE_STOPPED;
|
...
|
268 if (lpService->Status.dwCurrentState == SERVICE_STOP_PENDING) |
269 lpService->Status.dwWin32ExitCode = ERROR_SUCCESS;
|
270 else |
271 lpService->Status.dwWin32ExitCode = ERROR_GEN_FAILURE;
|
–
You may want to review this whole Status update block, fwiw.