comdlg32: fixed support for deleting items other than the first

Daniel Jelinski djelinski1 at gmail.com
Wed Jun 6 17:59:58 CDT 2012


-------------- next part --------------
From 5abb8a0b00c48aa6c109ceb5aeac9cbeb090e8eb Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Thu, 7 Jun 2012 00:46:47 +0200
Subject: comdlg32: fixed support for deleting items other than the first

---
 dlls/comdlg32/itemdlg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comdlg32/itemdlg.c b/dlls/comdlg32/itemdlg.c
index 3955a75..05bea2b 100644
--- a/dlls/comdlg32/itemdlg.c
+++ b/dlls/comdlg32/itemdlg.c
@@ -3380,7 +3380,7 @@ static HRESULT WINAPI IFileDialogCustomize_fnRemoveControlItem(IFileDialogCustom
             return E_FAIL;
 
         for(i = 0; i < count; i++)
-            if(SendMessageW(ctrl->hwnd, CB_GETITEMDATA, 0, 0) == dwIDItem)
+            if(SendMessageW(ctrl->hwnd, CB_GETITEMDATA, i, 0) == dwIDItem)
             {
                 if(SendMessageW(ctrl->hwnd, CB_DELETESTRING, i, 0) == CB_ERR)
                     return E_FAIL;
-- 
1.7.5.4


More information about the wine-patches mailing list