mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
[SERVICES]
- On service stop, set Service->lpImage to NULL after calling ScmDereferenceServiceImage, so the same image is not dereferenced again on service deletion - Do not call ScmDereferenceServiceImage in CreateServiceListEntry, as the service should never have an image there CORE-11273 #resolve svn path=/trunk/; revision=71355
This commit is contained in:
parent
407f2e8218
commit
6b27b08a69
|
@ -566,8 +566,7 @@ done:;
|
|||
|
||||
if (lpService != NULL)
|
||||
{
|
||||
if (lpService->lpImage != NULL)
|
||||
ScmDereferenceServiceImage(lpService->lpImage);
|
||||
ASSERT(lpService->lpImage == NULL);
|
||||
}
|
||||
|
||||
return dwError;
|
||||
|
@ -1085,6 +1084,7 @@ Done:
|
|||
dwControl == SERVICE_CONTROL_STOP)
|
||||
{
|
||||
ScmDereferenceServiceImage(Service->lpImage);
|
||||
Service->lpImage = NULL;
|
||||
}
|
||||
|
||||
LeaveCriticalSection(&ControlServiceCriticalSection);
|
||||
|
|
Loading…
Reference in a new issue