menu.c: Changes the order of DispatchMessage and message removal
Jose Alonso
alonso at estadao.com.br
Mon Apr 18 17:07:02 CDT 2005
menu.c: Changes the order of DispatchMessage and message removal
This patch avoids a 100% of CPU utilization in a special case when
SetTimer(NULL, 0, 100, TimerProc) is used and TimerProc posts a
WM_TIMER message.
--
alonso
-------------- next part --------------
--- dlls/user/menu.c.orig 2005-03-30 15:59:28.000000000 -0300
+++ dlls/user/menu.c 2005-04-15 15:21:02.000000000 -0300
@@ -2866,7 +2866,9 @@
}
else
{
+ PeekMessageW( &msg, 0, msg.message, msg.message, PM_REMOVE );
DispatchMessageW( &msg );
+ continue;
}
if (!fEndMenu) fRemove = TRUE;
More information about the wine-patches
mailing list