dlls/winex11.drv/dib.c: initialize two warnings (RESEND)
Gerald Pfeifer
gerald at pfeifer.com
Fri Oct 16 13:45:03 CDT 2009
I verified that I still need this patch originally sent on May 31st
to address to compiler warings with current versions of GCC 4.5.0.
This seems to be the only invocation of DIB_GetBitmapInfo which
requires this kind of extra initialization.
Gerald
ChangeLog:
Initialize two variables in X11DRV_GetDIBits.
diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c
index 1fc8812..7601afc 100644
--- a/dlls/winex11.drv/dib.c
+++ b/dlls/winex11.drv/dib.c
@@ -4085,7 +4085,7 @@ INT CDECL X11DRV_GetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT start
PALETTEENTRY palette[256];
size_t obj_size;
int height;
- LONG width, tempHeight;
+ LONG width=0, tempHeight=0;
int bitmap_type;
BOOL core_header;
void* colorPtr;
More information about the wine-patches
mailing list