diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 5d2c3bd777c..d21fd804576 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -140,7 +140,7 @@ @ stub GdipDeletePrivateFontCollection @ stub GdipDeleteRegion @ stub GdipDeleteStringFormat -@ stub GdipDisposeImage +@ stdcall GdipDisposeImage(ptr) @ stub GdipDisposeImageAttributes @ stdcall GdipDrawArc(ptr ptr long long long long long long) @ stub GdipDrawArcI diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 1ff0d492a27..2bb4396a0ef 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -24,6 +24,19 @@ WINE_DEFAULT_DEBUG_CHANNEL(gdiplus); +GpStatus WINGDIPAPI GdipDisposeImage(GpImage *image) +{ + static int calls; + + if(!image) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + GpStatus WINGDIPAPI GdipGetImageHeight(GpImage *image, UINT *height) { static int calls; diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index bfa2c41e80b..816f32d7404 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -128,6 +128,7 @@ GpStatus WINGDIPAPI GdipCreateCustomLineCap(GpPath*,GpPath*,GpLineCap,REAL, GpCustomLineCap**); GpStatus WINGDIPAPI GdipDeleteCustomLineCap(GpCustomLineCap*); +GpStatus WINGDIPAPI GdipDisposeImage(GpImage*); GpStatus WINGDIPAPI GdipGetImageHeight(GpImage*,UINT*); GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage*,REAL*); GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage*,GUID*);