Andrew Talbot : shlwapi/tests: Write-strings warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 9 06:03:24 CDT 2006


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

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Tue Aug  8 21:01:38 2006 +0100

shlwapi/tests: Write-strings warnings fix.

---

 dlls/shlwapi/ordinal.c       |    2 +-
 dlls/shlwapi/tests/ordinal.c |    2 +-
 dlls/shlwapi/tests/shreg.c   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/shlwapi/ordinal.c b/dlls/shlwapi/ordinal.c
index 669cff0..e198fba 100644
--- a/dlls/shlwapi/ordinal.c
+++ b/dlls/shlwapi/ordinal.c
@@ -2281,7 +2281,7 @@ BOOL WINAPI FDSA_Destroy(FDSA_info *info
  *
  * Insert element into an FDSA array
  */
-DWORD WINAPI FDSA_InsertItem(FDSA_info *info, DWORD where, void *block)
+DWORD WINAPI FDSA_InsertItem(FDSA_info *info, DWORD where, const void *block)
 {
     TRACE("(%p 0x%08lx %p)\n", info, where, block);
     if(where > info->num_items)
diff --git a/dlls/shlwapi/tests/ordinal.c b/dlls/shlwapi/tests/ordinal.c
index 44873bc..c63b378 100644
--- a/dlls/shlwapi/tests/ordinal.c
+++ b/dlls/shlwapi/tests/ordinal.c
@@ -242,7 +242,7 @@ static void test_fdsa(void)
     BOOL (WINAPI *pFDSA_Initialize)(DWORD block_size, DWORD inc, FDSA_info *info, void *mem,
                                     DWORD init_blocks);
     BOOL (WINAPI *pFDSA_Destroy)(FDSA_info *info);
-    DWORD (WINAPI *pFDSA_InsertItem)(FDSA_info *info, DWORD where, void *block);
+    DWORD (WINAPI *pFDSA_InsertItem)(FDSA_info *info, DWORD where, const void *block);
     BOOL (WINAPI *pFDSA_DeleteItem)(FDSA_info *info, DWORD where);
 
     FDSA_info info;
diff --git a/dlls/shlwapi/tests/shreg.c b/dlls/shlwapi/tests/shreg.c
index 4c4883b..cb0b3f6 100644
--- a/dlls/shlwapi/tests/shreg.c
+++ b/dlls/shlwapi/tests/shreg.c
@@ -53,7 +53,7 @@ static DWORD nExpLen2;
 static const char * sEmptyBuffer ="0123456789";
 
 /* delete key and all its subkeys */
-static DWORD delete_key( HKEY hkey, LPSTR parent, LPSTR keyname )
+static DWORD delete_key( HKEY hkey, LPCSTR parent, LPCSTR keyname )
 {
     HKEY parentKey;
     DWORD ret;




More information about the wine-cvs mailing list