mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 01:44:21 +00:00
Prevents a freeze when running the bootcd. Still needs to investigate to find the real reason.
svn path=/trunk/; revision=26070
This commit is contained in:
parent
4062336483
commit
c306ff4785
|
@ -1203,6 +1203,14 @@ IopCreateDriver(IN PUNICODE_STRING DriverName OPTIONAL,
|
|||
&ServiceKeyName,
|
||||
sizeof(UNICODE_STRING));
|
||||
|
||||
if (!DriverName)
|
||||
{
|
||||
/* HACK: Something goes wrong in next lines in this case.
|
||||
* Just leave to prevent a freeze */
|
||||
*pDriverObject = DriverObject;
|
||||
return Status;
|
||||
}
|
||||
|
||||
/* Add the Object and get its handle */
|
||||
Status = ObInsertObject(DriverObject,
|
||||
NULL,
|
||||
|
|
Loading…
Reference in a new issue