Module: wine Branch: master Commit: 632c8cfd2b8b1f9cb4a65e428c49202f4a736167 URL: https://gitlab.winehq.org/wine/wine/-/commit/632c8cfd2b8b1f9cb4a65e428c49202...
Author: Francois Gouget fgouget@codeweavers.com Date: Wed Feb 22 15:57:22 2023 +0100
winmm/tests: Ignore spurious WM_DWMCOLORIZATIONCOLORCHANGED messages.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54557
---
dlls/winmm/tests/midi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/winmm/tests/midi.c b/dlls/winmm/tests/midi.c index cf58e1e955a..d6f54e75f23 100644 --- a/dlls/winmm/tests/midi.c +++ b/dlls/winmm/tests/midi.c @@ -39,8 +39,9 @@ extern const char* mmsys_error(MMRESULT error); /* from wave.c */
static BOOL spurious_message(LPMSG msg) { - /* WM_DEVICECHANGE 0x0219 appears randomly */ - if(msg->message == WM_DEVICECHANGE) { + /* These messages appear randomly */ + if(msg->message == WM_DEVICECHANGE || + msg->message == WM_DWMCOLORIZATIONCOLORCHANGED) { trace("skipping spurious message %04x\n", msg->message); return TRUE; }