http://bugs.winehq.org/show_bug.cgi?id=33235
--- Comment #8 from Dmitry Timoshkov dmitry@baikal.ru 2013-03-19 02:43:03 CDT --- (In reply to comment #7)
On an unrelated note - you shouldn't use PeekMessage() cause it doesn't wait and loop is executed constantly.
PeekMessage does wait.