Marcus Meissner : winex11: Move code behind error return.

Alexandre Julliard julliard at winehq.org
Thu Apr 17 07:38:24 CDT 2008


Module: wine
Branch: master
Commit: 0926fff545a7e7363de217df708a21979c05e500
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0926fff545a7e7363de217df708a21979c05e500

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Wed Apr 16 19:54:31 2008 +0100

winex11: Move code behind error return.

---

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

diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c
index 3d7bebf..f23592c 100644
--- a/dlls/winex11.drv/dib.c
+++ b/dlls/winex11.drv/dib.c
@@ -4040,12 +4040,12 @@ INT X11DRV_GetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT startscan,
   if (!(obj_size = GetObjectW( hbitmap, sizeof(dib), &dib ))) return 0;
 
   bitmap_type = DIB_GetBitmapInfo( (BITMAPINFOHEADER*)info, &width, &tempHeight, &descr.infoBpp, &descr.compression);
-  descr.lines = tempHeight;
   if (bitmap_type == -1)
   {
       ERR("Invalid bitmap\n");
       return 0;
   }
+  descr.lines = tempHeight;
   core_header = (bitmap_type == 0);
   colorPtr = (LPBYTE) info + (WORD) info->bmiHeader.biSize;
 




More information about the wine-cvs mailing list