dlls/winex11.drv/dib.c: initialize two warnings
Gerald Pfeifer
gerald at pfeifer.com
Sun May 31 16:44:08 CDT 2009
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 6df4137..8ce43f8 100644
--- a/dlls/winex11.drv/dib.c
+++ b/dlls/winex11.drv/dib.c
@@ -4042,7 +4042,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