http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d8b7ff
)
winex11: Move code behind error return.
author
Marcus Meissner
<marcus@jet.franken.de>
Wed, 16 Apr 2008 18:54:31 +0000
(19:54 +0100)
committer
Alexandre Julliard
<julliard@winehq.org>
Thu, 17 Apr 2008 09:40:47 +0000
(11:40 +0200)
dlls/winex11.drv/dib.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/winex11.drv/dib.c
b/dlls/winex11.drv/dib.c
index 3d7bebfd3dfcb3cf91645f3b8c6b7ee1eb1450b8..f23592cfb366968c3bcb8199ef1df2845d59fecb 100644
(file)
--- 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;