diff options
author | Chris Robinson <[email protected]> | 2012-12-24 05:37:53 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-12-24 05:37:53 -0800 |
commit | 9cd086a7079de9d2c109c0fd63b9694145f5840d (patch) | |
tree | da0870455f04e9060ede38d994c5066192cf1f11 /Alc/backends/mmdevapi.c | |
parent | c2adea1999251b3346ba40d08c32ab7727d8dcf8 (diff) |
Filter unneeded thread messages with MMDevApi
Diffstat (limited to 'Alc/backends/mmdevapi.c')
-rw-r--r-- | Alc/backends/mmdevapi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c index 9c934095..2555c7f3 100644 --- a/Alc/backends/mmdevapi.c +++ b/Alc/backends/mmdevapi.c @@ -92,12 +92,14 @@ typedef struct { HRESULT result; } ThreadRequest; +#define WM_USER_First (WM_USER+0) #define WM_USER_OpenDevice (WM_USER+0) #define WM_USER_ResetDevice (WM_USER+1) #define WM_USER_StartDevice (WM_USER+2) #define WM_USER_StopDevice (WM_USER+3) #define WM_USER_CloseDevice (WM_USER+4) #define WM_USER_Enumerate (WM_USER+5) +#define WM_USER_Last (WM_USER+5) static HRESULT WaitForResponse(ThreadRequest *req) { @@ -599,7 +601,7 @@ static DWORD CALLBACK MMDevApiMsgProc(void *ptr) SetEvent(req->FinishedEvt); TRACE("Starting message loop\n"); - while(GetMessage(&msg, NULL, 0, 0)) + while(GetMessage(&msg, NULL, WM_USER_First, WM_USER_Last)) { TRACE("Got message %u\n", msg.message); switch(msg.message) |