[18/18] gdiplus: added GdipDeleteStringFormat
Evan Stade
estade at gmail.com
Tue Aug 14 21:01:23 CDT 2007
Hi,
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/stringformat.c | 10 ++++++++++
include/gdiplusflat.h | 1 +
3 files changed, 12 insertions(+), 1 deletions(-)
--
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 7350547..615bb90 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -149,7 +149,7 @@
@ stdcall GdipDeletePen(ptr)
@ stub GdipDeletePrivateFontCollection
@ stub GdipDeleteRegion
-@ stub GdipDeleteStringFormat
+@ stdcall GdipDeleteStringFormat(ptr)
@ stdcall GdipDisposeImage(ptr)
@ stdcall GdipDisposeImageAttributes(ptr)
@ stdcall GdipDrawArc(ptr ptr long long long long long long)
diff --git a/dlls/gdiplus/stringformat.c b/dlls/gdiplus/stringformat.c
index 1be004d..6b20d23 100644
--- a/dlls/gdiplus/stringformat.c
+++ b/dlls/gdiplus/stringformat.c
@@ -44,6 +44,16 @@ GpStatus WINGDIPAPI GdipCreateStringForm
return Ok;
}
+GpStatus WINGDIPAPI GdipDeleteStringFormat(GpStringFormat *format)
+{
+ if(!format)
+ return InvalidParameter;
+
+ GdipFree(format);
+
+ return Ok;
+}
+
GpStatus WINGDIPAPI GdipGetStringFormatAlign(GpStringFormat *format,
StringAlignment *align)
{
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index baa621c..872ac9b 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -253,6 +253,7 @@ GpStatus WINGDIPAPI GdipDeleteFont(GpFon
GpStatus WINGDIPAPI GdipGetLogFontW(GpFont*,GpGraphics*,LOGFONTW*);
GpStatus WINGDIPAPI GdipCreateStringFormat(INT,LANGID,GpStringFormat**);
+GpStatus WINGDIPAPI GdipDeleteStringFormat(GpStringFormat*);
GpStatus WINGDIPAPI GdipGetStringFormatAlign(GpStringFormat*,StringAlignment*);
GpStatus WINGDIPAPI GdipGetStringFormatHotkeyPrefix(GDIPCONST GpStringFormat*,INT*);
GpStatus WINGDIPAPI GdipGetStringFormatLineAlign(GpStringFormat*,StringAlignment*);
--
1.4.1
More information about the wine-patches
mailing list