comctl32/tests: Write-strings warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Fri Jun 30 13:01:00 CDT 2006
Changelog:
comctl32/tests: Write-strings warnings fix.
diff -urN a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
--- a/dlls/comctl32/tests/listview.c 2006-06-15 13:14:27.000000000 +0100
+++ b/dlls/comctl32/tests/listview.c 2006-06-30 18:39:12.000000000 +0100
@@ -33,6 +33,7 @@
HIMAGELIST himl;
HBITMAP hbmp;
RECT r1, r2;
+ static CHAR hello[] = "hello";
icc.dwICC = 0;
icc.dwSize = sizeof icc;
@@ -71,7 +72,7 @@
ok(r == -1, "should fail\n");
item.iSubItem = 0;
- item.pszText = "hello";
+ item.pszText = hello;
r = SendMessage(hwnd, LVM_INSERTITEM, 0, (LPARAM) &item);
ok(r == 0, "should not fail\n");
@@ -83,7 +84,7 @@
ok(r == TRUE, "should not fail\n");
item.iSubItem = 0;
- item.pszText = "hello";
+ item.pszText = hello;
r = SendMessage(hwnd, LVM_INSERTITEM, 0, (LPARAM) &item);
ok(r == 0, "should not fail\n");
More information about the wine-patches
mailing list