mmdevapi: Prevent 64 bit overflow within a few days of audio device use. (try 3)
Joerg-Cyril.Hoehle at t-systems.com
Joerg-Cyril.Hoehle at t-systems.com
Fri Mar 15 07:38:31 CDT 2013
Hi,
This is almost a resend of v2, because it almost
hit the bottom of source.winehq.org/patches/
What happened?
The only comments about v2 were Michael Stefaniuc
suggesting a refactoring and me explaining why
in this particular case, that would not be a good idea.
http://www.winehq.org/pipermail/wine-devel/2013-March/099068.html
For v3, I've renamed MulDiv64 to UMulDiv64. Unlike QueryPerformanceCounter,
mmdevapi GetPosition operates on unsigned values.
The idea to replace X * numerator / denominator by
X / den * mul + remainder from euclidian division came from
http://blog.airsource.co.uk/index.php/2010/03/15/quelle-heure-est-il/
Regards,
Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mmdevapi-Prevent-64-bit-overflow-within-a-few-days.patch
Type: application/octet-stream
Size: 5324 bytes
Desc: 0001-mmdevapi-Prevent-64-bit-overflow-within-a-few-days.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130315/471a72a1/attachment.obj>
More information about the wine-patches
mailing list