comctl32/tests: Don't crash on some win9x boxes.

This commit is contained in:
Paul Vriens 2008-10-01 22:25:11 +02:00 committed by Alexandre Julliard
parent 5157798836
commit d0dfd9d784
1 changed files with 4 additions and 0 deletions

View File

@ -1034,6 +1034,10 @@ static void test_hdm_filterMessages(HWND hParent)
else
ok_sequence(sequences, HEADER_SEQ_INDEX, filterMessages_seq_noninteractive,
"filterMessages sequence testing", FALSE);
/* Some Win9x versions don't send a WM_KILLFOCUS.
* Set the focus explicitly to the parent to avoid a crash.
*/
SetFocus(hParent);
DestroyWindow(hChild);
}