Prevents a freeze when running the bootcd. Still needs to investigate to find the...
authorHervé Poussineau <hpoussin@reactos.org>
Tue, 13 Mar 2007 15:57:50 +0000 (15:57 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Tue, 13 Mar 2007 15:57:50 +0000 (15:57 +0000)
svn path=/trunk/; revision=26070

reactos/ntoskrnl/io/iomgr/driver.c

index 982f242..7a1a065 100644 (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,