SHELL32: eliminate some -Wwrite-strings warnings
Mike McCormack
mike at codeweavers.com
Wed Jun 1 00:37:16 CDT 2005
ChangeLog:
* eliminate some -Wwrite-strings warnings
-------------- next part --------------
? dlls/shell32/tests/cabinet.c
? dlls/shell32/tests/pidl.c
? dlls/shell32/tests/pidl.ok
Index: dlls/shell32/tests/shelllink.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/tests/shelllink.c,v
retrieving revision 1.5
diff -u -p -r1.5 shelllink.c
--- dlls/shell32/tests/shelllink.c 19 Apr 2005 09:48:44 -0000 1.5
+++ dlls/shell32/tests/shelllink.c 1 Jun 2005 05:37:46 -0000
@@ -90,7 +90,7 @@ static void test_get_set()
char mypath[MAX_PATH];
char buffer[INFOTIPSIZE];
LPITEMIDLIST pidl, tmp_pidl;
- char * str;
+ const char * str;
int i;
WORD w;
@@ -270,13 +270,13 @@ static void test_get_set()
typedef struct
{
- char* description;
- char* workdir;
- char* path;
+ const char* description;
+ const char* workdir;
+ const char* path;
LPITEMIDLIST pidl;
- char* arguments;
+ const char* arguments;
int showcmd;
- char* icon;
+ const char* icon;
int icon_id;
WORD hotkey;
} lnk_desc_t;
Index: dlls/shell32/tests/shlfileop.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/tests/shlfileop.c,v
retrieving revision 1.18
diff -u -p -r1.18 shlfileop.c
--- dlls/shell32/tests/shlfileop.c 6 May 2005 15:44:32 -0000 1.18
+++ dlls/shell32/tests/shlfileop.c 1 Jun 2005 05:37:46 -0000
@@ -44,7 +44,7 @@ static void InitFunctionPointers(void)
}
/* creates a file with the specified name for tests */
-void createTestFile(CHAR *name)
+void createTestFile(const CHAR *name)
{
HANDLE file;
DWORD written;
@@ -56,7 +56,7 @@ void createTestFile(CHAR *name)
CloseHandle(file);
}
-BOOL file_exists(CHAR *name)
+BOOL file_exists(const CHAR *name)
{
return GetFileAttributesA(name) != INVALID_FILE_ATTRIBUTES;
}
@@ -95,7 +95,7 @@ void clean_after_shfo_tests(void)
files - string with file names, separated by null characters. Ends on a double
null characters
*/
-void set_curr_dir_path(CHAR *buf, CHAR* files)
+void set_curr_dir_path(CHAR *buf, const CHAR* files)
{
buf[0] = 0;
while (files[0])
Index: dlls/shell32/tests/shlfolder.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/tests/shlfolder.c,v
retrieving revision 1.5
diff -u -p -r1.5 shlfolder.c
--- dlls/shell32/tests/shlfolder.c 11 Apr 2005 18:50:01 -0000 1.5
+++ dlls/shell32/tests/shlfolder.c 1 Jun 2005 05:37:47 -0000
@@ -41,7 +41,7 @@
IMalloc *ppM;
/* creates a file with the specified name for tests */
-void CreateTestFile(CHAR *name)
+void CreateTestFile(const CHAR *name)
{
HANDLE file;
DWORD written;
More information about the wine-patches
mailing list