Evan Stade : gdiplus: Added GdipDeleteStringFormat.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 15 04:34:19 CDT 2007


Module: wine
Branch: master
Commit: 380f18498666bcae9b067c14f331a48513aae48e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=380f18498666bcae9b067c14f331a48513aae48e

Author: Evan Stade <estade at gmail.com>
Date:   Tue Aug 14 19:01:23 2007 -0700

gdiplus: Added GdipDeleteStringFormat.

---

 dlls/gdiplus/gdiplus.spec   |    2 +-
 dlls/gdiplus/stringformat.c |   10 ++++++++++
 include/gdiplusflat.h       |    1 +
 3 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index a93e822..b31c6ed 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 GdipCreateStringFormat(INT attr, LANGID lang,
     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 640f0fc..f63d895 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -251,6 +251,7 @@ GpStatus WINGDIPAPI GdipDeleteFont(GpFont*);
 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*);




More information about the wine-cvs mailing list