[PATCH] winex11.drv: use bmpImage instead of descr->image (Coverity)

Marcus Meissner marcus at jet.franken.de
Tue Aug 11 03:10:05 CDT 2009


Hi,

I think its not possible as the SHM image is probably always present
already here in descr->image, but later uses also directly use bmpImage.

Ciao, Marcus
---
 dlls/winex11.drv/dib.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c
index 09df53f..28fb6aa 100644
--- a/dlls/winex11.drv/dib.c
+++ b/dlls/winex11.drv/dib.c
@@ -3569,8 +3569,8 @@ static int X11DRV_DIB_SetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
         XSync( gdi_display, False );
         wine_tsx11_unlock();
 
-        old_data = descr->image->data;
-        descr->image->data = descr->physBitmap->shminfo.shmaddr;
+        old_data = bmpImage->data;
+        bmpImage->data = descr->physBitmap->shminfo.shmaddr;
     }
 #endif
 
-- 
1.5.6



More information about the wine-patches mailing list