advapi32: Cast-qual warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Sat Oct 14 10:38:32 CDT 2006
Changelog:
advapi32: Cast-qual warnings fix.
diff -urN a/dlls/advapi32/registry.c b/dlls/advapi32/registry.c
--- a/dlls/advapi32/registry.c 2006-10-12 15:55:06.000000000 +0100
+++ b/dlls/advapi32/registry.c 2006-10-14 16:21:50.000000000 +0100
@@ -54,26 +54,26 @@
static HKEY special_root_keys[NB_SPECIAL_ROOT_KEYS];
static BOOL hkcu_cache_disabled;
-static const WCHAR name_CLASSES_ROOT[] =
+static WCHAR name_CLASSES_ROOT[] =
{'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[] =
+static WCHAR name_LOCAL_MACHINE[] =
{'M','a','c','h','i','n','e',0};
-static const WCHAR name_USERS[] =
+static WCHAR name_USERS[] =
{'U','s','e','r',0};
-static const WCHAR name_PERFORMANCE_DATA[] =
+static WCHAR name_PERFORMANCE_DATA[] =
{'P','e','r','f','D','a','t','a',0};
-static const WCHAR name_CURRENT_CONFIG[] =
+static WCHAR name_CURRENT_CONFIG[] =
{'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[] =
+static WCHAR name_DYN_DATA[] =
{'D','y','n','D','a','t','a',0};
-#define DECL_STR(key) { sizeof(name_##key)-sizeof(WCHAR), sizeof(name_##key), (LPWSTR)name_##key }
+#define DECL_STR(key) { sizeof(name_##key)-sizeof(WCHAR), sizeof(name_##key), name_##key }
static UNICODE_STRING root_key_names[NB_SPECIAL_ROOT_KEYS] =
{
DECL_STR(CLASSES_ROOT),
More information about the wine-patches
mailing list