mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 17:18:31 +00:00
- Make sure we get a Subkey in RegDeleteKeyA/W. Fixes Winetests causing a system crash, but (for now) hides a bug in CM.
svn path=/trunk/; revision=36005
This commit is contained in:
parent
7736cc6aef
commit
76153f2508
1 changed files with 14 additions and 0 deletions
|
@ -1180,6 +1180,13 @@ RegDeleteKeyA (HKEY hKey,
|
||||||
HANDLE TargetKey;
|
HANDLE TargetKey;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
/* Make sure we got a subkey */
|
||||||
|
if (!lpSubKey)
|
||||||
|
{
|
||||||
|
/* Fail */
|
||||||
|
return ERROR_INVALID_PARAMETER;
|
||||||
|
}
|
||||||
|
|
||||||
Status = MapDefaultKey (&ParentKey,
|
Status = MapDefaultKey (&ParentKey,
|
||||||
hKey);
|
hKey);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
|
@ -1234,6 +1241,13 @@ RegDeleteKeyW (HKEY hKey,
|
||||||
HANDLE TargetKey;
|
HANDLE TargetKey;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
/* Make sure we got a subkey */
|
||||||
|
if (!lpSubKey)
|
||||||
|
{
|
||||||
|
/* Fail */
|
||||||
|
return ERROR_INVALID_PARAMETER;
|
||||||
|
}
|
||||||
|
|
||||||
Status = MapDefaultKey (&ParentKey,
|
Status = MapDefaultKey (&ParentKey,
|
||||||
hKey);
|
hKey);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue