[5/8] gdiplus: implemented GdipGetImageType

Evan Stade estade at gmail.com
Mon Jul 30 21:09:49 CDT 2007


Hi,

This implementation is not exactly correct, but it's needed to make
PPTViewer work properly (returning the actual image type results in a
crash).

 dlls/gdiplus/image.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index b9c0abb..849b1b4 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -97,15 +97,13 @@ GpStatus WINGDIPAPI GdipGetImageRawForma
 
 GpStatus WINGDIPAPI GdipGetImageType(GpImage *image, ImageType *type)
 {
-    static int calls;
-
     if(!image || !type)
         return InvalidParameter;
 
-    if(!(calls++))
-        FIXME("not implemented\n");
+    /* FIXME: get correct image type. */
+    *type = ImageTypeUnknown;
 
-    return NotImplemented;
+    return Ok;
 }
 
 GpStatus WINGDIPAPI GdipGetImageVerticalResolution(GpImage *image, REAL *res)
-- 
1.4.1


More information about the wine-patches mailing list