Jacek Caban : advapi32: Use absolute registry paths to create special root keys.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Nov 13 08:34:46 CST 2015


Module: wine
Branch: master
Commit: ba081cab56846d458b554e92fcb1f9078269ba78
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ba081cab56846d458b554e92fcb1f9078269ba78

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Nov 12 17:19:32 2015 +0100

advapi32: Use absolute registry paths to create special root keys.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/advapi32/registry.c | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/dlls/advapi32/registry.c b/dlls/advapi32/registry.c
index 0f23f4c..798f93d 100644
--- a/dlls/advapi32/registry.c
+++ b/dlls/advapi32/registry.c
@@ -48,23 +48,29 @@ WINE_DEFAULT_DEBUG_CHANNEL(reg);
 #define HKEY_SPECIAL_ROOT_LAST    HKEY_DYN_DATA
 
 static const WCHAR name_CLASSES_ROOT[] =
-    {'M','a','c','h','i','n','e','\\',
+    {'\\','R','e','g','i','s','t','r','y','\\',
+     'M','a','c','h','i','n','e','\\',
      'S','o','f','t','w','a','r','e','\\',
      'C','l','a','s','s','e','s',0};
 static const WCHAR name_LOCAL_MACHINE[] =
-    {'M','a','c','h','i','n','e',0};
+    {'\\','R','e','g','i','s','t','r','y','\\',
+     'M','a','c','h','i','n','e',0};
 static const WCHAR name_USERS[] =
-    {'U','s','e','r',0};
+    {'\\','R','e','g','i','s','t','r','y','\\',
+     'U','s','e','r',0};
 static const WCHAR name_PERFORMANCE_DATA[] =
-    {'P','e','r','f','D','a','t','a',0};
+    {'\\','R','e','g','i','s','t','r','y','\\',
+     'P','e','r','f','D','a','t','a',0};
 static const WCHAR name_CURRENT_CONFIG[] =
-    {'M','a','c','h','i','n','e','\\',
+    {'\\','R','e','g','i','s','t','r','y','\\',
+     'M','a','c','h','i','n','e','\\',
      'S','y','s','t','e','m','\\',
      'C','u','r','r','e','n','t','C','o','n','t','r','o','l','S','e','t','\\',
      'H','a','r','d','w','a','r','e',' ','P','r','o','f','i','l','e','s','\\',
      'C','u','r','r','e','n','t',0};
 static const WCHAR name_DYN_DATA[] =
-    {'D','y','n','D','a','t','a',0};
+    {'\\','R','e','g','i','s','t','r','y','\\',
+     'D','y','n','D','a','t','a',0};
 
 static const WCHAR * const root_key_names[] =
 {




More information about the wine-cvs mailing list