comctl32/treeview: Avoid a NULL pointer dereference.

This commit is contained in:
Kirill K. Smirnov 2009-12-09 16:27:45 +03:00 committed by Alexandre Julliard
parent 318c7b24ee
commit dc45e2c513
1 changed files with 2 additions and 1 deletions

View File

@ -4091,7 +4091,8 @@ TREEVIEW_LButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam)
InvalidateRect(infoPtr->hwnd, &tempItem->rect, TRUE);
/* refresh the selected item to return the filled background */
InvalidateRect(infoPtr->hwnd, &(infoPtr->selectedItem->rect), TRUE);
if (infoPtr->selectedItem)
InvalidateRect(infoPtr->hwnd, &(infoPtr->selectedItem->rect), TRUE);
}
return 0;