[PATCH] Don't crash on some win9x boxes
Paul Vriens
Paul.Vriens.Wine at gmail.com
Wed Oct 1 15:25:11 CDT 2008
---
dlls/comctl32/tests/header.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/tests/header.c b/dlls/comctl32/tests/header.c
index 4a6c54a..fd0c4c4 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);
}
--
1.5.5.1
--------------070403090505090208050106--
More information about the wine-patches
mailing list