Commit 01c1466c authored by Alexandre Julliard's avatar Alexandre Julliard

Removed redundant GetMessage call.

parent 958732d2
...@@ -1355,19 +1355,11 @@ static int WCUSER_MainLoop(struct inner_data* data) ...@@ -1355,19 +1355,11 @@ static int WCUSER_MainLoop(struct inner_data* data)
/* need to use PeekMessage loop instead of simple GetMessage: /* need to use PeekMessage loop instead of simple GetMessage:
* multiple messages might have arrived in between, * multiple messages might have arrived in between,
* so GetMessage would lead to delayed processing */ * so GetMessage would lead to delayed processing */
while (PeekMessage(&msg, 0, 0, 0, PM_NOREMOVE)) while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
{ {
switch (GetMessage(&msg, 0, 0, 0)) if (msg.message == WM_QUIT) return 0;
{ WINE_TRACE("dispatching msg %04x\n", msg.message);
case -1: /* the event handle became invalid, so exit */ DispatchMessage(&msg);
return -1;
case 0: /* WM_QUIT has been posted */
return 0;
default:
WINE_TRACE("dispatching msg %04x\n", msg.message);
DispatchMessage(&msg);
break;
}
} }
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment