mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 22:41:43 +00:00
winmm/tests: Ignore spurious WM_DWMCOLORIZATIONCOLORCHANGED messages.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54557
This commit is contained in:
parent
aa1cc9ad38
commit
632c8cfd2b
|
@ -39,8 +39,9 @@ extern const char* mmsys_error(MMRESULT error); /* from wave.c */
|
||||||
|
|
||||||
static BOOL spurious_message(LPMSG msg)
|
static BOOL spurious_message(LPMSG msg)
|
||||||
{
|
{
|
||||||
/* WM_DEVICECHANGE 0x0219 appears randomly */
|
/* These messages appear randomly */
|
||||||
if(msg->message == WM_DEVICECHANGE) {
|
if(msg->message == WM_DEVICECHANGE ||
|
||||||
|
msg->message == WM_DWMCOLORIZATIONCOLORCHANGED) {
|
||||||
trace("skipping spurious message %04x\n", msg->message);
|
trace("skipping spurious message %04x\n", msg->message);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue