[3/7] gdiplus: GdipReAlloc
Evan Stade
estade at gmail.com
Thu Jun 21 18:15:21 CDT 2007
Hi,
This is only declared privately because it is not a function provided
by the dll. It follows the exported-function naming scheme however,
because it's a counterpart to GdipFree and GdipAlloc.
Changelog:
*Added GdipReAlloc
dlls/gdiplus/gdiplus.c | 8 ++++++++
dlls/gdiplus/gdiplus_private.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
--
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/gdiplus.c b/dlls/gdiplus/gdiplus.c
index 959bcb0..4e9fb1c 100644
--- a/dlls/gdiplus/gdiplus.c
+++ b/dlls/gdiplus/gdiplus.c
@@ -92,6 +92,14 @@ void WINGDIPAPI GdipFree(void* ptr)
HeapFree(GetProcessHeap(), 0, ptr);
}
+/*****************************************************
+ * GdipReAlloc (not a WIN32 API function)
+ */
+void* GdipReAlloc(void * ptr, SIZE_T size)
+{
+ return HeapReAlloc(GetProcessHeap(), 0, ptr, size);
+}
+
COLORREF ARGB2COLORREF(ARGB color)
{
/*
diff --git a/dlls/gdiplus/gdiplus_private.h b/dlls/gdiplus/gdiplus_private.h
index e221044..f9d5710 100644
--- a/dlls/gdiplus/gdiplus_private.h
+++ b/dlls/gdiplus/gdiplus_private.h
@@ -25,6 +25,7 @@ #include "gdiplus.h"
#define GP_DEFAULT_PENSTYLE (PS_GEOMETRIC | PS_ENDCAP_FLAT)
COLORREF ARGB2COLORREF(ARGB color);
+void* GdipReAlloc(void * ptr, SIZE_T size);
struct GpPen{
UINT style;
--
1.4.1
More information about the wine-patches
mailing list