programs/regedit/listview.c warning fix

Gerald Pfeifer gerald at pfeifer.com
Tue Jun 28 14:30:27 CDT 2005


This fixes a warning I spotted on SUSE LINUX 9.3.

  listview.c: In function `AddEntryToList':
  listview.c:196: warning: assignment discards qualifiers from pointer target type

Making the fourth parameter of ListView_SetItemText() would be nicer, 
but I assume this is defined by the Windows API and thus not ours to
change?

Gerald

ChangeLog:
Avoid compiler warning in AddEntryToList().
Index: listview.c
===================================================================
RCS file: /home/wine/wine/programs/regedit/listview.c,v
retrieving revision 1.16
diff -u -r1.16 listview.c
--- listview.c	10 Jun 2005 19:32:24 -0000	1.16
+++ listview.c	28 Jun 2005 19:12:59 -0000
@@ -159,7 +159,7 @@
     index = ListView_InsertItem(hwndLV, &item);
     if (index != -1) {
         /*        LPTSTR pszText = NULL; */
-        LPCTSTR pszText = _T("(cannot display value)");
+        LPTSTR pszText = _T("(cannot display value)");
         switch (dwValType) {
         case REG_SZ:
         case REG_EXPAND_SZ:



More information about the wine-patches mailing list