comctl32/treeview: check for child item before SendExpanding

In TREEVIEW_Collapse the TREEVIEW_SendExpanding call could change the item->firstChild value, therefore check it before for early return.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=23077

Merge request reports

Loading