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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 3 05:22:52 CDT 2006


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

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Fri Jun 30 19:01:00 2006 +0100

comctl32/tests: Write-strings warnings fix.

---

 dlls/comctl32/tests/listview.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index c929ed5..b6c00e9 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -33,6 +33,7 @@ START_TEST(listview)
     HIMAGELIST himl;
     HBITMAP hbmp;
     RECT r1, r2;
+    static CHAR hello[] = "hello";
 
     icc.dwICC = 0;
     icc.dwSize = sizeof icc;
@@ -71,7 +72,7 @@ START_TEST(listview)
     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 @@ START_TEST(listview)
     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-cvs mailing list