mmdevapi: Prevent 64 bit overflow within a few days of audio device use. (try 3)

Alexandre Julliard julliard at
Fri Mar 15 07:47:52 CDT 2013

<Joerg-Cyril.Hoehle at> writes:

> 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.

It's still a good idea, even if the function is ultimately used only in
one place.

> For v3, I've renamed MulDiv64 to UMulDiv64. Unlike QueryPerformanceCounter,
> mmdevapi GetPosition operates on unsigned values.

That's a bad name. Don't make internal functions look like Win32 APIs.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list