mirror of
https://github.com/reactos/reactos.git
synced 2025-05-23 11:04:52 +00:00
[MKHIVE] Misc fixes:
- add missing initialization - support trailing backslash at end of registry key name CORE-8584 #resolve svn path=/trunk/; revision=64501
This commit is contained in:
parent
a1c13a964f
commit
fcafe31f42
1 changed files with 9 additions and 0 deletions
|
@ -88,6 +88,8 @@ CreateInMemoryStructure(
|
||||||
free(Key);
|
free(Key);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Key->KeyCell->SubKeyLists[Stable] = HCELL_NIL;
|
||||||
|
Key->KeyCell->SubKeyLists[Volatile] = HCELL_NIL;
|
||||||
Key->LinkedKey = NULL;
|
Key->LinkedKey = NULL;
|
||||||
return Key;
|
return Key;
|
||||||
}
|
}
|
||||||
|
@ -136,7 +138,14 @@ RegpOpenOrCreateKey(
|
||||||
(USHORT)((ULONG_PTR)End - (ULONG_PTR)LocalKeyName);
|
(USHORT)((ULONG_PTR)End - (ULONG_PTR)LocalKeyName);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
RtlInitUnicodeString(&KeyString, LocalKeyName);
|
RtlInitUnicodeString(&KeyString, LocalKeyName);
|
||||||
|
if (KeyString.Length == 0)
|
||||||
|
{
|
||||||
|
/* Trailing backslash char; we're done */
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Redirect from 'CurrentControlSet' to 'ControlSet001' */
|
/* Redirect from 'CurrentControlSet' to 'ControlSet001' */
|
||||||
if (!strncmpW(LocalKeyName, L"CurrentControlSet", 17) &&
|
if (!strncmpW(LocalKeyName, L"CurrentControlSet", 17) &&
|
||||||
|
|
Loading…
Reference in a new issue