[ros-diffs] [dgorbachev] 26983: - Fix r26980 hack.
dgorbachev at svn.reactos.org
dgorbachev at svn.reactos.org
Fri Jun 8 17:35:08 CEST 2007
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?rev=26983&r1=26982&r2=26983&view=diff
==============================================================================
--- 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 */
More information about the Ros-diffs
mailing list