winex11: Move code behind error return.
authorMarcus Meissner <marcus@jet.franken.de>
Wed, 16 Apr 2008 18:54:31 +0000 (19:54 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 17 Apr 2008 09:40:47 +0000 (11:40 +0200)
dlls/winex11.drv/dib.c

index 3d7bebfd3dfcb3cf91645f3b8c6b7ee1eb1450b8..f23592cfb366968c3bcb8199ef1df2845d59fecb 100644 (file)
@@ -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;