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,