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

Alexandre Julliard julliard at winehq.org
Thu Oct 2 11:37:24 CDT 2008


Module: wine
Branch: master
Commit: d0dfd9d7840b72ae984954b681f9c49f58bec371
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d0dfd9d7840b72ae984954b681f9c49f58bec371

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Wed Oct  1 22:25:11 2008 +0200

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

---

 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);
 
 }




More information about the wine-cvs mailing list