comdlg32: Fixed support for deleting items other than the first.

This commit is contained in:
Daniel Jelinski 2012-06-07 00:46:47 +02:00 committed by Alexandre Julliard
parent 34229e5fb6
commit aec1c9562d
1 changed files with 1 additions and 1 deletions

View File

@ -3380,7 +3380,7 @@ static HRESULT WINAPI IFileDialogCustomize_fnRemoveControlItem(IFileDialogCustom
return E_FAIL; return E_FAIL;
for(i = 0; i < count; i++) 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) if(SendMessageW(ctrl->hwnd, CB_DELETESTRING, i, 0) == CB_ERR)
return E_FAIL; return E_FAIL;