Daniel Jelinski : comdlg32: Fixed support for deleting items other than the first.
Module: wine Branch: master Commit: aec1c9562d69168626f5018eb29074e8c3d4ab08 URL: http://source.winehq.org/git/wine.git/?a=commit;h=aec1c9562d69168626f5018eb2... Author: Daniel Jelinski <djelinski1(a)gmail.com> Date: Thu Jun 7 00:46:47 2012 +0200 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;
participants (1)
-
Alexandre Julliard