[PATCH 1/2] user32: Store pointer to timer callback in SetTimer function instead of treating it as window procedure

Piotr Caban piotr at codeweavers.com
Tue Mar 1 05:16:52 CST 2016


I decided to leave 16-bit version of SetTimer as is for now. I haven't 
seen any application running out of window procedures in this case. This 
patch will change behavior of following 16-bit application:
SetTimer(hWnd, TIMER_ID, 1, tfunc);
GetMessage32(&msg, 0, 0, 0, TRUE); //get's WM_TIMER message
DispatchMessage32(&msg, TRUE);
Now this code will no longer call tfunc callback. According to my test 
new behavior is correct.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
---
  dlls/user32/message.c | 28 ++++++++++------------------
  1 file changed, 10 insertions(+), 18 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-user32-Store-pointer-to-timer-callback-in-SetTimer-fun.txt
Type: text/x-patch
Size: 3526 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20160301/91fe943a/attachment.bin>


More information about the wine-patches mailing list