mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- Fix r26980 hack.
svn path=/trunk/; revision=26983
This commit is contained in:
parent
1d38ecfc6a
commit
caa2fdd5fa
1 changed files with 3 additions and 1 deletions
|
@ -133,7 +133,9 @@ RegpOpenOrCreateKey(
|
|||
RtlInitUnicodeString(&KeyString, LocalKeyName);
|
||||
|
||||
/* Redirect from 'CurrentControlSet' to 'ControlSet001' */
|
||||
if (!wcsncmp(LocalKeyName, L"CurrentControlSet", 17))
|
||||
if (!wcsncmp(LocalKeyName, L"CurrentControlSet", 17) &&
|
||||
ParentKey->NameSize == 12 &&
|
||||
!memcmp(ParentKey->Name, L"SYSTEM", 12))
|
||||
RtlInitUnicodeString(&KeyString, L"ControlSet001");
|
||||
|
||||
/* Check subkey in memory structure */
|
||||
|
|
Loading…
Reference in a new issue