Vincent Povirk : gdiplus: Return 0 from GdiplusShutdown.
Alexandre Julliard
julliard at winehq.org
Fri Oct 1 11:38:44 CDT 2010
Module: wine
Branch: master
Commit: 1eb12cb08d29c8c823b72ec2b9a63d720a4e4349
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1eb12cb08d29c8c823b72ec2b9a63d720a4e4349
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Thu Sep 30 13:02:22 2010 -0500
gdiplus: Return 0 from GdiplusShutdown.
---
dlls/gdiplus/gdiplus.c | 8 ++++++++
dlls/gdiplus/gdiplus.spec | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.c b/dlls/gdiplus/gdiplus.c
index 9bb9fab..fb159be 100644
--- a/dlls/gdiplus/gdiplus.c
+++ b/dlls/gdiplus/gdiplus.c
@@ -121,6 +121,14 @@ 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);
+
+ return 0;
+}
+
/*****************************************************
* GdipAlloc [GDIPLUS.@]
*/
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index be1ec8c..b529d0d 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -626,5 +626,5 @@
@ stdcall GdipWindingModeOutline(ptr ptr float)
@ stdcall GdiplusNotificationHook(ptr)
@ stdcall GdiplusNotificationUnhook(ptr)
-@ stdcall GdiplusShutdown(ptr)
+@ stdcall GdiplusShutdown(ptr) GdiplusShutdown_wrapper
@ stdcall GdiplusStartup(ptr ptr ptr)
More information about the wine-cvs
mailing list