Author: dgorbachev
Date: Mon Jun 4 02:12:14 2007
New Revision: 26983
URL:
http://svn.reactos.org/svn/reactos?rev=26983&view=rev
Log:
- Fix r26980 hack.
Modified:
trunk/reactos/tools/mkhive/registry.c
Modified: trunk/reactos/tools/mkhive/registry.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/mkhive/registry.c?re…
==============================================================================
--- trunk/reactos/tools/mkhive/registry.c (original)
+++ trunk/reactos/tools/mkhive/registry.c Mon Jun 4 02:12:14 2007
@@ -133,7 +133,9 @@
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 */