Fwd: [PATCH 1/3] winmm: Fix mciSendString command parsing on 64-bit.

Alexandre Julliard julliard at winehq.org
Fri Aug 27 08:07:49 CDT 2010

Octavian Voicu <octavian.voicu at gmail.com> writes:

> The reason for which I opted for a BYTE* is so that I can use sizeof()
> to increment the pointer correctly. DWORD_PTR has a different size of
> 32- and 64-bit systems, so using DWORD* would make it more complicated
> to increment with sizeof(DWORD_PTR). Another reason is that offset is
> now in bytes, so supplying a pointer of different size wouldn't make
> much sense.

There's no reason to change this. Just work with DWORDs throughout, it
will avoid a lot of ugly casts.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list