http://bugs.winehq.org/show_bug.cgi?id=33235
--- Comment #10 from Martin Štrympl sfence.software@gmail.com 2013-03-19 03:23:19 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.
Yeah. You are right. It is because of copying this code from my bigger project where I find this wine bug and where I don't want to wait to message. I use there sleep function after do something else after receive/not receive message by PeekMessage.
During writing example code I forgot to copy sleeping code or change PeekMessage to GetMessage function.