mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 16:36:11 +00:00
Fix driver loading. patch by tinus
svn path=/trunk/; revision=15070
This commit is contained in:
parent
ee7e1eefbe
commit
f11525033d
|
@ -916,8 +916,20 @@ IopCreateServiceListEntry(PUNICODE_STRING ServiceName)
|
|||
NULL);
|
||||
if (!NT_SUCCESS(Status) || Service->Start > 1)
|
||||
{
|
||||
ExFreePool(Service->ServiceGroup.Buffer);
|
||||
ExFreePool(Service->ImagePath.Buffer);
|
||||
/*
|
||||
* If something goes wrong during RtlQueryRegistryValues
|
||||
* it'll just drop everything on the floor and return,
|
||||
* so you have to check if the buffers were filled.
|
||||
* Luckily we zerofilled the Service.
|
||||
*/
|
||||
if (Service->ServiceGroup.Buffer)
|
||||
{
|
||||
ExFreePool(Service->ServiceGroup.Buffer);
|
||||
}
|
||||
if (Service->ImagePath.Buffer)
|
||||
{
|
||||
ExFreePool(Service->ImagePath.Buffer);
|
||||
}
|
||||
ExFreePool(Service);
|
||||
return(Status);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue