Prevent crash when listview trace logging is on.

This commit is contained in:
Paul Rupe 2002-09-30 18:52:33 +00:00 committed by Alexandre Julliard
parent 8534e08a02
commit 4ee2e9e989
1 changed files with 3 additions and 2 deletions

View File

@ -7428,13 +7428,14 @@ static LRESULT LISTVIEW_SetItemState(LISTVIEW_INFO *infoPtr, INT nItem, LPLVITEM
BOOL bResult = TRUE;
LVITEMW lvItem;
TRACE("(nItem=%d, lpLVItem=%s)\n", nItem, debuglvitem_t(lpLVItem, TRUE));
TRACE("(nItem=%d, state=%x, stateMask=%x)\n", nItem, lpLVItem->state,
lpLVItem->stateMask);
lvItem.iItem = nItem;
lvItem.iSubItem = 0;
lvItem.mask = LVIF_STATE;
lvItem.state = lpLVItem->state;
lvItem.stateMask = lpLVItem->stateMask ;
lvItem.stateMask = lpLVItem->stateMask;
if (nItem == -1)
{