[Bug 10343] SetTimer won't wait for specified time

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Nov 12 18:29:56 CST 2007


http://bugs.winehq.org/show_bug.cgi?id=10343


Vitaliy Margolen <vitaliy at kievinfo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID




--- Comment #7 from Vitaliy Margolen <vitaliy at kievinfo.com>  2007-11-12 18:29:55 ---
(In reply to comment #6)
> #define MY_ID 1000
> #define TIMEOUT 6000
> 
> ...
> 
> hTimer = SetTimer(0, MY_ID, TIMEOUT, NULL);
> assert(hTimer > 0x7000);
> 
> if you're not satisfied with test case above, please read my notes one more
> time and proceed appropriately. I have quite nothing to add.
> 

This test is invalid. From MSDN:
"If the function succeeds and the hWnd parameter is NULL, the return value is
an integer identifying the new timer."

"integer" the UINT_PTR type is 64-bit unsigned int. Which can have _ANY_ value,
including 1.

So _assuming_ anything that is not documented is wrong. Which makes the bug in
your program.

Closing invalid as you failed to demonstrate the problem. Yet you showed that
bug in your own code.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list