shell32: Write-strings warnings fix (1 of 2)

Andrew Talbot Andrew.Talbot at talbotville.com
Mon Aug 7 13:03:40 CDT 2006


Changelog:
    shell32: Write-strings warnings fix.

diff -urN a/dlls/shell32/dialogs.c b/dlls/shell32/dialogs.c
--- a/dlls/shell32/dialogs.c	2006-05-23 13:48:39.000000000 +0100
+++ b/dlls/shell32/dialogs.c	2006-08-07 18:38:42.000000000 +0100
@@ -240,6 +240,7 @@
     HKEY hkey ;
 /*    char szDbgMsg[256] = "" ; */
     char *pszList = NULL, *pszCmd = NULL, cMatch = 0, cMax = 0x60, szIndex[2] = "-" ;
+    static CHAR empty[] = "";
     DWORD icList = 0, icCmd = 0 ;
     UINT Nix ;
 
@@ -247,7 +248,7 @@
 
     if (ERROR_SUCCESS != RegCreateKeyExA (
         HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RunMRU",
-        0, "", REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, NULL))
+        0, empty, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, NULL))
         MessageBoxA (hCb, "Unable to open registry key !", "Nix", MB_OK) ;
 
     RegQueryValueExA (hkey, "MRUList", NULL, NULL, NULL, &icList) ;



More information about the wine-patches mailing list