[MKHIVE]
authorJérôme Gardou <jerome.gardou@reactos.org>
Fri, 3 Oct 2014 22:19:07 +0000 (22:19 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Fri, 3 Oct 2014 22:19:07 +0000 (22:19 +0000)
 - Perform a case insensitive comparison to find existing subkeys in the tree.
Dedicated to Hervé ;-)

svn path=/trunk/; revision=64516

reactos/tools/mkhive/registry.c

index c87b684..36e3a7c 100644 (file)
@@ -20,7 +20,7 @@
  * PROJECT:         ReactOS hive maker
  * FILE:            tools/mkhive/registry.c
  * PURPOSE:         Registry code
- * PROGRAMMER:      Hervé Poussineau
+ * PROGRAMMER:      Hervé Poussineau
  */
 
 /*
@@ -159,7 +159,7 @@ RegpOpenOrCreateKey(
                {
                        CurrentKey = CONTAINING_RECORD(Ptr, KEY, KeyList);
                        if (CurrentKey->NameSize == KeyString.Length
-                        && memcmp(CurrentKey->Name, KeyString.Buffer, KeyString.Length) == 0)
+                        && strncmpiW(CurrentKey->Name, KeyString.Buffer, KeyString.Length / sizeof(WCHAR)) == 0)
                        {
                                goto nextsubkey;
                        }