From caa2fdd5fa0ed7024dee07202961ffc50795ddc8 Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Sun, 3 Jun 2007 22:12:14 +0000 Subject: [PATCH] - Fix r26980 hack. svn path=/trunk/; revision=26983 --- reactos/tools/mkhive/registry.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/tools/mkhive/registry.c b/reactos/tools/mkhive/registry.c index d9cb3625501..c224b475dbf 100644 --- a/reactos/tools/mkhive/registry.c +++ b/reactos/tools/mkhive/registry.c @@ -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 */