winex11: Move code behind error return.

This commit is contained in:
Marcus Meissner 2008-04-16 19:54:31 +01:00 committed by Alexandre Julliard
parent 8d8b7ffbc7
commit 0926fff545
1 changed files with 1 additions and 1 deletions

View 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;