http://bugs.winehq.org/show_bug.cgi?id=33235
--- Comment #15 from Dmitry Timoshkov dmitry@baikal.ru 2013-03-19 10:02:57 CDT --- (In reply to comment #14)
Interesting. Are you saying that the following loops are equivalent? while (GetMessage(&msg, NULL, 0, 0)) { DispatchMessage(&msg); }
while (1) { PeekMessage(&msg, NULL, 0, 0, PM_REMOVE); if(msg.message == WM_QUIT) break; DispatchMessage(&msg); }
No, they don't. But once you add a check for PeekMessage return value they are supposed to do pretty much the same. If you have a look at the GetMessage implementation in Wine you will notice that it's essentially a loop around PeekMessage.