Commit dc45e2c5 authored by Kirill K. Smirnov's avatar Kirill K. Smirnov Committed by Alexandre Julliard

comctl32/treeview: Avoid a NULL pointer dereference.

parent 318c7b24
...@@ -4091,7 +4091,8 @@ TREEVIEW_LButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam) ...@@ -4091,7 +4091,8 @@ TREEVIEW_LButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam)
InvalidateRect(infoPtr->hwnd, &tempItem->rect, TRUE); InvalidateRect(infoPtr->hwnd, &tempItem->rect, TRUE);
/* refresh the selected item to return the filled background */ /* 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; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment