mmdevapi: Correctly convert UINT32 to INT64

Vitaliy Margolen wine-devel at kievinfo.com
Mon Jan 30 08:33:46 CST 2012


On 01/30/2012 03:08 AM, Joerg-Cyril.Hoehle at t-systems.com wrote:
> Michael Stefaniuc wrote:
>>> But now I see basestd.h defines LONG32.
>> LONG32 is kinda redundant. LONG is 32bit on all Windows
>> versions on 16bit, 32bit and 64bit Windows.
> Ah, thank you.  However in our particular case, the value that
> getbuf_last is derived from is UINT32, not UINT, so for symmetry,
> I still recommend the explicit LONG32.

UINT is the same as UNIT32:

basetsd.h:84 typedef unsigned int     UINT32, *PUINT32;
windef.h:213 typedef unsigned int    UINT,       *PUINT;

Vitaliy.



More information about the wine-devel mailing list