How to deal with variables where the size differs for 32 and 64bit

Reece Dunn msclrhd at
Mon Dec 6 11:39:51 CST 2010

On 5 December 2010 20:05, Paul Vriens < at> wrote:
> Hi,
> Just found the fix for the oledb32:convert tests on 64bit. We need to adjust
> our oledb.idl (see patch attached).

Nice find.

Shouldn't these be using the _PTR types instead (ULONG_PTR, LONG_PTR
and friends?) -- then you don't need the 32/64-bit switch.

> How should I deal with the ok() messages where we currently specify the
> 32bit variant? I mean this will of course introduce warnings on the 64bit
> side.
> Do I need to create a wrapper for the ok() messages, with a _WIN64 check
> somewhere? Or use a different printf format identifier?

Does "%p" (pointer) work? Are there any other tests that handle 32/64-bit types?

- Reece

More information about the wine-devel mailing list