projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d38ecf
)
- Fix r26980 hack.
author
Dmitry Gorbachev
<gorbachev@reactos.org>
Sun, 3 Jun 2007 22:12:14 +0000
(22:12 +0000)
committer
Dmitry Gorbachev
<gorbachev@reactos.org>
Sun, 3 Jun 2007 22:12:14 +0000
(22:12 +0000)
svn path=/trunk/; revision=26983
reactos/tools/mkhive/registry.c
patch
|
blob
|
history
diff --git
a/reactos/tools/mkhive/registry.c
b/reactos/tools/mkhive/registry.c
index
d9cb362
..
c224b47
100644
(file)
--- 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 */