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:
Hervé Poussineau 2007-03-13 15:57:50 +00:00
parent 4062336483
commit c306ff4785

View file

@ -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,