- Fix r26980 hack.

svn path=/trunk/; revision=26983
This commit is contained in:
Dmitry Gorbachev 2007-06-03 22:12:14 +00:00
parent 1d38ecfc6a
commit caa2fdd5fa

View file

@ -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 */