mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
* fix registry BSOD when no value exists
* fixes bug 1750 * thnx to P43LOk for bug report svn path=/trunk/; revision=23568
This commit is contained in:
parent
0b11700c2c
commit
2d95178395
1 changed files with 5 additions and 0 deletions
|
@ -1564,6 +1564,11 @@ CmiDeleteValueFromKey(IN PEREGISTRY_HIVE RegistryHive,
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue