winex11: X11DRV_DIB_[GS]etImageBits should return 0 on failure.
This commit is contained in:
parent
4fe68a9e1e
commit
e031ef4807
|
@ -3525,7 +3525,7 @@ static int X11DRV_DIB_SetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
|
|||
ERR("Out of memory!\n");
|
||||
XDestroyImage( bmpImage );
|
||||
wine_tsx11_unlock();
|
||||
return lines;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
wine_tsx11_unlock();
|
||||
|
@ -3654,7 +3654,7 @@ static int X11DRV_DIB_GetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
|
|||
ERR("Out of memory!\n");
|
||||
XDestroyImage( bmpImage );
|
||||
wine_tsx11_unlock();
|
||||
return lines;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue