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

This commit is contained in:
Lei Zhang 2008-07-18 15:28:06 -07:00 committed by Alexandre Julliard
parent 4fe68a9e1e
commit e031ef4807
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}