Add LPDWORD typedef to wtypes.idl

Vincent Béron vberon at mecano.gme.usherb.ca
Sat Feb 19 07:38:03 CST 2005


Le ven 18/02/2005 à 22:55, Dmitry Timoshkov a écrit :
> "Vincent Béron" <vberon at mecano.gme.usherb.ca> wrote:
> 
> > There are probably more pointer types missing from our wtypes.idl.
> >
> > Changelog:
> > Add LPDWORD definition to wtypes.idl.
> 
> > --- include/wtypes.idl 8 Dec 2004 13:59:52 -0000 1.22
> > +++ include/wtypes.idl 19 Feb 2005 00:41:55 -0000
> > @@ -48,6 +48,8 @@ typedef float FLOAT;
> >
> >  typedef void *PVOID, *LPVOID;
> >
> > +typedef unsigned long *LPDWORD;
> 
> This introduces a potential miscompilation on 64-bit platforms. I'd suggest
> to use a base type instead of unsigned long:
> 
> typedef DWORD *LPDWORD;

Good point.

Changelog:
Add LPDWORD definition to wtypes.idl.

Vincent

Vincent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wtypes2.diff
Type: text/x-patch
Size: 489 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050219/e49c68db/wtypes2.bin


More information about the wine-patches mailing list