ole32: simplify repeated win64 checks

Dan Kegel dank at kegel.com
Sun Sep 4 19:05:37 CDT 2011


This avoids the compiler warnings:

usrmarshal.c: In function ‘HGLOBAL_UserUnmarshal’:
usrmarshal.c:485: error: logical ‘&&’ with non-zero constant will
always evaluate as true
usrmarshal.c: In function ‘HMETAFILE_UserUnmarshal’:
usrmarshal.c:1098: error: logical ‘&&’ with non-zero constant will
always evaluate as true
usrmarshal.c: In function ‘HENHMETAFILE_UserUnmarshal’:
usrmarshal.c:1290: error: logical ‘&&’ with non-zero constant will
always evaluate as true

With this and the other two similar patches I just posted,
   CFLAGS="-g -O0 -Werror" ./configure
   make
succeeds for me without regressions on a 32 bit ubuntu 10.10 system.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ole32-placate-Wlogical-op.patch
Type: text/x-patch
Size: 1867 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110904/0b3e4954/attachment.bin>


More information about the wine-patches mailing list