From d0dfd9d7840b72ae984954b681f9c49f58bec371 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Wed, 1 Oct 2008 22:25:11 +0200 Subject: [PATCH] comctl32/tests: Don't crash on some win9x boxes. --- dlls/comctl32/tests/header.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/comctl32/tests/header.c b/dlls/comctl32/tests/header.c index 4a6c54a49d8..fd0c4c41e72 100644 --- a/dlls/comctl32/tests/header.c +++ b/dlls/comctl32/tests/header.c @@ -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); } -- 2.11.4.GIT