Author: janderwald
Date: Sun Aug 13 22:57:28 2006
New Revision: 23568
URL:
http://svn.reactos.org/svn/reactos?rev=23568&view=rev
Log:
* fix registry BSOD when no value exists
* fixes bug 1750
* thnx to P43LOk for bug report
Modified:
trunk/reactos/ntoskrnl/cm/regfile.c
Modified: trunk/reactos/ntoskrnl/cm/regfile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cm/regfile.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/cm/regfile.c (original)
+++ trunk/reactos/ntoskrnl/cm/regfile.c Sun Aug 13 22:57:28 2006
@@ -1564,6 +1564,11 @@
ULONG i;
NTSTATUS Status;
+ if (KeyCell->ValueListOffset == -1)
+ {
+ return STATUS_OBJECT_NAME_NOT_FOUND;
+ }
+
ValueListCell = HvGetCell (RegistryHive->Hive, KeyCell->ValueListOffset);
VERIFY_VALUE_LIST_CELL(ValueListCell);