Marcus Meissner : winex11.drv: WORD and BYTE swapped in 555-> 1 bit converter (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Oct 24 13:43:55 CDT 2011
Module: wine
Branch: master
Commit: 0101149c7a28f0863b3f5a8e0faa2913ccede6c2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0101149c7a28f0863b3f5a8e0faa2913ccede6c2
Author: Marcus Meissner <meissner at suse.de>
Date: Mon Oct 24 07:51:30 2011 +0200
winex11.drv: WORD and BYTE swapped in 555->1 bit converter (Coverity).
---
dlls/winex11.drv/dib.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c
index a1ce9bb..b70dcfa 100644
--- a/dlls/winex11.drv/dib.c
+++ b/dlls/winex11.drv/dib.c
@@ -594,12 +594,13 @@ static void X11DRV_DIB_GetImageBits_1( int lines, BYTE *dstbits,
} else if (bmpImage->blue_mask==0x7c00) {
/* ==== bgr 555 bmp -> pal 1 dib ==== */
for (h=0; h<lines; h++) {
- WORD dstval;
+ BYTE dstval;
srcpixel=srcbits;
dstbyte=dstbits;
dstval=0;
for (x=0; x<width; x++) {
- BYTE srcval;
+ WORD srcval;
+
srcval=*srcpixel++;
dstval|=(X11DRV_DIB_GetNearestIndex
(colors, 2,
More information about the wine-cvs
mailing list