[14/14] gdiplus: added GdipLoadImageFromStreamICM stub

Evan Stade estade at gmail.com
Tue Jul 24 19:19:21 CDT 2007


Hi,

The reason I didn't declare GdipLoadImageFromStreamICM in
gdiplusflat.h is because then every internal file that includes
gdiplus.h (and thus gdiplusflat.h) would have to import 1 to 3 more
headers, which didn't seem worth it for a stub function.

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

-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index d21fd80..74ba047 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -419,7 +419,7 @@
 @ stub GdipLoadImageFromFile
 @ stub GdipLoadImageFromFileICM
 @ stub GdipLoadImageFromStream
-@ stub GdipLoadImageFromStreamICM
+@ stdcall GdipLoadImageFromStreamICM(ptr ptr)
 @ stub GdipMeasureCharacterRanges
 @ stub GdipMeasureDriverString
 @ stub GdipMeasureString
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 2bb4396..f7c56a3 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -16,8 +16,13 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#include <stdarg.h>
+
 #include "windef.h"
+#include "winbase.h"
 #include "wingdi.h"
+#include "objbase.h"
+
 #include "gdiplus.h"
 #include "gdiplus_private.h"
 #include "wine/debug.h"
@@ -128,3 +133,16 @@ GpStatus WINGDIPAPI GdipImageGetFrameCou
 
     return NotImplemented;
 }
+
+GpStatus WINGDIPAPI GdipLoadImageFromStreamICM(IStream* stream, GpImage **image)
+{
+    static int calls;
+
+    if(!stream || !image)
+        return InvalidParameter;
+
+    if(!(calls++))
+        FIXME("not implemented\n");
+
+    return NotImplemented;
+}
-- 
1.4.1


More information about the wine-patches mailing list