shlwapi/tests: Write-strings warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Tue Aug 8 15:01:38 CDT 2006
Here is the patch as I meant to send.
---
Changelog:
shlwapi/tests: Write-strings warnings fix.
diff -urN a/dlls/shlwapi/ordinal.c b/dlls/shlwapi/ordinal.c
--- a/dlls/shlwapi/ordinal.c 2006-06-20 22:05:17.000000000 +0100
+++ b/dlls/shlwapi/ordinal.c 2006-08-08 19:04:20.000000000 +0100
@@ -2281,7 +2281,7 @@
*
* 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 -urN a/dlls/shlwapi/tests/ordinal.c b/dlls/shlwapi/tests/ordinal.c
--- a/dlls/shlwapi/tests/ordinal.c 2006-06-14 12:54:29.000000000 +0100
+++ b/dlls/shlwapi/tests/ordinal.c 2006-08-08 19:58:37.000000000 +0100
@@ -242,7 +242,7 @@
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 -urN a/dlls/shlwapi/tests/shreg.c b/dlls/shlwapi/tests/shreg.c
--- a/dlls/shlwapi/tests/shreg.c 2006-05-23 13:48:44.000000000 +0100
+++ b/dlls/shlwapi/tests/shreg.c 2006-08-08 20:36:07.000000000 +0100
@@ -53,7 +53,7 @@
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-patches
mailing list