Author: hpoussin
Date: Tue Mar 13 18:57:50 2007
New Revision: 26070
URL: http://svn.reactos.org/svn/reactos?rev=26070&view=rev
Log:
Prevents a freeze when running the bootcd. Still needs to investigate to find the real reason.
Modified:
trunk/reactos/ntoskrnl/io/iomgr/driver.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/driver.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/driver.c…
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/driver.c (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/driver.c Tue Mar 13 18:57:50 2007
@@ -1203,6 +1203,14 @@
&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,