[4/21] gdiplus: changed GdipGetImageType

Evan Stade estade at gmail.com
Tue Jul 31 21:15:08 CDT 2007


Hi,

The reason this was implemented somewhat non-intuitively yesterday was
that pptviewer crashed if it was implemented correctly. However, upon
further inspection I found that it was because it expected gdiplus.dll
to export more functions (which now it does).  The effect of this
patch will be a regression in the ability to render WMF files within
powerpoint slides, but that regression will be remedied in the next
few patches.

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

-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 0e86c4e..c378981 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -103,8 +103,7 @@ GpStatus WINGDIPAPI GdipGetImageType(GpI
     if(!image || !type)
         return InvalidParameter;
 
-    /* FIXME: get correct image type. */
-    *type = ImageTypeUnknown;
+    *type = image->type;
 
     return Ok;
 }
-- 
1.4.1


More information about the wine-patches mailing list