mirror of
https://github.com/reactos/reactos.git
synced 2025-06-15 11:08:30 +00: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:
parent
3003471e64
commit
85b71880fa
1 changed files with 9 additions and 1 deletions
|
@ -306,8 +306,16 @@ ScmControlDriver(PSERVICE lpService,
|
||||||
dwError = ScmUnloadDriver(lpService);
|
dwError = ScmUnloadDriver(lpService);
|
||||||
if (dwError == ERROR_SUCCESS)
|
if (dwError == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
lpService->Status.dwControlsAccepted = 0;
|
|
||||||
lpService->Status.dwCurrentState = SERVICE_STOPPED;
|
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;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue