gdiplus: Remove GdiplusShutdown() as it is redudant with GdiplusShutdown_wrapper().

Francois Gouget fgouget at free.fr
Wed Mar 16 02:26:52 CDT 2011


Because it has to return 0, the implementation of GdiplusShutdown() has to have a different prototype from the official one and thus must have a different name to avoid conflicts.
However this makes having a separate GdiplusShutdown() implementation redundant.
---
 dlls/gdiplus/gdiplus.c |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/dlls/gdiplus/gdiplus.c b/dlls/gdiplus/gdiplus.c
index fb159be..8c08660 100644
--- a/dlls/gdiplus/gdiplus.c
+++ b/dlls/gdiplus/gdiplus.c
@@ -116,16 +116,17 @@ void WINAPI GdiplusNotificationUnhook(ULONG_PTR token)
 /*****************************************************
  *      GdiplusShutdown [GDIPLUS.@]
  */
-void WINAPI GdiplusShutdown(ULONG_PTR token)
-{
-    /* FIXME: no object tracking */
-}
-
-/* "bricksntiles" expects a return value of 0, which native coincidentally gives */
 ULONG WINAPI GdiplusShutdown_wrapper(ULONG_PTR token)
 {
-    GdiplusShutdown(token);
+    /* Notice the slightly different prototype from the official
+     * signature which forces us to use the the _wrapper suffix.
+     */
+
+    /* FIXME: no object tracking */
 
+    /* "bricksntiles" expects a return value of 0, which native
+     * coincidentally gives.
+     */
     return 0;
 }
 
-- 
1.7.2.3




More information about the wine-patches mailing list