From c306ff47850f3b60f9477de7078c8e0fdac1f0bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 13 Mar 2007 15:57:50 +0000 Subject: [PATCH] Prevents a freeze when running the bootcd. Still needs to investigate to find the real reason. svn path=/trunk/; revision=26070 --- reactos/ntoskrnl/io/iomgr/driver.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reactos/ntoskrnl/io/iomgr/driver.c b/reactos/ntoskrnl/io/iomgr/driver.c index 982f242d002..7a1a0652b23 100644 --- 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,