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

Alexandre Julliard julliard at winehq.org
Mon Jul 21 08:52:06 CDT 2008


Module: wine
Branch: master
Commit: e031ef4807fdcda10d60c27dd0058232cd4abbe8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e031ef4807fdcda10d60c27dd0058232cd4abbe8

Author: Lei Zhang <thestig at google.com>
Date:   Fri Jul 18 15:28:06 2008 -0700

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

---

 dlls/winex11.drv/dib.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c
index 6fddb0a..9348281 100644
--- a/dlls/winex11.drv/dib.c
+++ b/dlls/winex11.drv/dib.c
@@ -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;
         }
     }
 




More information about the wine-cvs mailing list