Dmitry Timoshkov : gdiplus: Return error code of the failed API to the caller.

Alexandre Julliard julliard at winehq.org
Mon Aug 20 14:16:19 CDT 2012


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Mon Aug 20 12:08:05 2012 +0900

gdiplus: Return error code of the failed API to the caller.

---

 dlls/gdiplus/graphics.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index a04446b..e46cf48 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -3188,7 +3188,7 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
                     GdipFree(src_data);
                 GdipFree(dst_data);
                 GdipDeleteMatrix(dst_to_src);
-                return OutOfMemory;
+                return stat;
             }
 
             apply_image_attributes(imageAttributes, src_data,




More information about the wine-cvs mailing list