mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[SERVICES] Update the service status after unloading a driver
Update the service status after unloading the driver and pass the new status to the caller. CORE-14269
This commit is contained in:
@@ -306,8 +306,16 @@ ScmControlDriver(PSERVICE lpService,
|
||||
dwError = ScmUnloadDriver(lpService);
|
||||
if (dwError == ERROR_SUCCESS)
|
||||
{
|
||||
lpService->Status.dwControlsAccepted = 0;
|
||||
lpService->Status.dwCurrentState = SERVICE_STOPPED;
|
||||
lpService->Status.dwControlsAccepted = 0;
|
||||
lpService->Status.dwWin32ExitCode = ERROR_SUCCESS;
|
||||
|
||||
if (lpServiceStatus != NULL)
|
||||
{
|
||||
RtlCopyMemory(lpServiceStatus,
|
||||
&lpService->Status,
|
||||
sizeof(SERVICE_STATUS));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user