Andrew Talbot : shell32: Write-strings warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Aug 8 07:37:29 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 5d0e4ba0eb196418d7e3cbf93e32cb6d9fae2428
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=5d0e4ba0eb196418d7e3cbf93e32cb6d9fae2428

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Mon Aug  7 19:03:40 2006 +0100

shell32: Write-strings warnings fix.

---

 dlls/shell32/dialogs.c  |    2 +-
 dlls/shell32/shellord.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/dialogs.c b/dlls/shell32/dialogs.c
index 4c40246..3a49933 100644
--- a/dlls/shell32/dialogs.c
+++ b/dlls/shell32/dialogs.c
@@ -247,7 +247,7 @@ void FillList (HWND hCb, char *pszLatest
 
     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, NULL, 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) ;
diff --git a/dlls/shell32/shellord.c b/dlls/shell32/shellord.c
index a6216d3..c1f953b 100644
--- a/dlls/shell32/shellord.c
+++ b/dlls/shell32/shellord.c
@@ -522,7 +522,7 @@ SignalFileOpen (DWORD dwParam1)
  * RETURNS
  *   result of the SHQueryValueEx call
  */
-static INT SHADD_get_policy(LPSTR policy, LPDWORD type, LPVOID buffer, LPDWORD len)
+static INT SHADD_get_policy(LPCSTR policy, LPDWORD type, LPVOID buffer, LPDWORD len)
 {
     HKEY Policy_basekey;
     INT ret;




More information about the wine-cvs mailing list