projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4062336
)
Prevents a freeze when running the bootcd. Still needs to investigate to find the...
author
Hervé Poussineau
<hpoussin@reactos.org>
Tue, 13 Mar 2007 15:57:50 +0000
(15:57 +0000)
committer
Hervé 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
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/io/iomgr/driver.c
b/reactos/ntoskrnl/io/iomgr/driver.c
index
982f242
..
7a1a065
100644
(file)
--- a/
reactos/ntoskrnl/io/iomgr/driver.c
+++ b/
reactos/ntoskrnl/io/iomgr/driver.c
@@
-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,