Mike McCormack : winecfg: Fix some gcc 4.1 warnings.

Alexandre Julliard julliard at wine.codeweavers.com
Sat Mar 18 12:50:59 CST 2006


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

Author: Mike McCormack <mike at codeweavers.com>
Date:   Fri Mar 17 22:49:27 2006 +0900

winecfg: Fix some gcc 4.1 warnings.

---

 programs/winecfg/appdefaults.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/programs/winecfg/appdefaults.c b/programs/winecfg/appdefaults.c
index 681d21c..78874a0 100644
--- a/programs/winecfg/appdefaults.c
+++ b/programs/winecfg/appdefaults.c
@@ -130,7 +130,7 @@ static void add_listview_item(HWND listv
   item.lParam = (LPARAM) association;
   item.iItem = ListView_GetItemCount(listview);
 
-  ListView_InsertItem(listview, &item);
+  SendMessage(listview, LVM_INSERTITEM, 0, (LPARAM) &item);
 }
 
 /* Called when the application is initialized (cannot reinit!)  */
@@ -179,7 +179,7 @@ static void init_appsheet(HWND dialog)
       item.state = LVIS_SELECTED | LVIS_FOCUSED;
       item.stateMask = LVIS_SELECTED | LVIS_FOCUSED;
 
-      ListView_SetItem(listview, &item);
+      SendMessage(listview, LVM_SETITEM, 0, (LPARAM) &item);
   }
   
 }
@@ -214,7 +214,7 @@ static void on_selection_change(HWND dia
   
   if (item.iItem == -1) return;
   
-  ListView_GetItem(listview, &item);
+  SendMessage(listview, LVM_GETITEM, 0, (LPARAM) &item);
 
   current_app = (char *) item.lParam;
 
@@ -301,7 +301,7 @@ static void on_remove_app_click(HWND dia
 
     section[strlen(section)] = '\0'; /* remove last backslash  */
     set_reg_key(config_key, section, NULL, NULL); /* delete the section  */
-    ListView_DeleteItem(listview, selection);
+    SendMessage(listview, LVM_DELETEITEM, selection, 0);
     ListView_SetItemState(listview, selection - 1, LVIS_SELECTED | LVIS_FOCUSED, LVIS_SELECTED | LVIS_FOCUSED);
 
     SetFocus(listview);




More information about the wine-cvs mailing list