DeleteColumn should return success even for uOwnerData.

This commit is contained in:
Bill Medland 2002-07-16 01:10:26 +00:00 committed by Alexandre Julliard
parent 83ad886aad
commit b99101230f
1 changed files with 1 additions and 2 deletions

View File

@ -4240,8 +4240,7 @@ static LRESULT LISTVIEW_DeleteColumn(HWND hwnd, INT nColumn)
if (Header_DeleteItem(infoPtr->hwndHeader, nColumn) != FALSE)
{
if (!uOwnerData)
bResult = LISTVIEW_RemoveColumn(infoPtr->hdpaItems, nColumn);
bResult = uOwnerData ? TRUE : LISTVIEW_RemoveColumn(infoPtr->hdpaItems, nColumn);
/* Need to reset the item width when deleting a column */
infoPtr->nItemWidth = LISTVIEW_GetItemWidth(hwnd);