Commit e031ef48 authored by Lei Zhang's avatar Lei Zhang Committed by Alexandre Julliard

winex11: X11DRV_DIB_[GS]etImageBits should return 0 on failure.

parent 4fe68a9e
...@@ -3525,7 +3525,7 @@ static int X11DRV_DIB_SetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr ) ...@@ -3525,7 +3525,7 @@ static int X11DRV_DIB_SetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
ERR("Out of memory!\n"); ERR("Out of memory!\n");
XDestroyImage( bmpImage ); XDestroyImage( bmpImage );
wine_tsx11_unlock(); wine_tsx11_unlock();
return lines; return 0;
} }
} }
wine_tsx11_unlock(); wine_tsx11_unlock();
...@@ -3654,7 +3654,7 @@ static int X11DRV_DIB_GetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr ) ...@@ -3654,7 +3654,7 @@ static int X11DRV_DIB_GetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
ERR("Out of memory!\n"); ERR("Out of memory!\n");
XDestroyImage( bmpImage ); XDestroyImage( bmpImage );
wine_tsx11_unlock(); wine_tsx11_unlock();
return lines; return 0;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment