(resend) winecfg: Fix title reset when removing application from the list.

Dmitry Kozliuk dmitry.kozliuk at gmail.com
Mon Dec 15 16:42:37 CST 2014


Fixes bug #37713.

---
  programs/winecfg/appdefaults.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
diff --git a/programs/winecfg/appdefaults.c b/programs/winecfg/appdefaults.c
index 7dd3900..66085f4 100644
--- a/programs/winecfg/appdefaults.c
+++ b/programs/winecfg/appdefaults.c
@@ -394,7 +394,7 @@ static void on_remove_app_click(HWND dialog)
     item.mask = LVIF_STATE;
     item.state = LVIS_SELECTED | LVIS_FOCUSED;
     item.stateMask = LVIS_SELECTED | LVIS_FOCUSED;
-    SendMessageW(listview, LVM_SETITEMSTATE, -1, (LPARAM)&item);
+    SendMessageW(listview, LVM_SETITEMSTATE, 0, (LPARAM)&item);
 
     SetFocus(listview);
     SendMessageW(GetParent(dialog), PSM_CHANGED, (WPARAM) dialog, 0);



More information about the wine-patches mailing list