Dmitry Timoshkov : gdiplus: Add parameter checks to GdipSetPropertyItem, print item contents in the trace.
Alexandre Julliard
julliard at winehq.org
Tue Jul 3 10:58:25 CDT 2012
Module: wine
Branch: master
Commit: 56621638dfd00736ec5ae2879e6dc5ea7e220c38
URL: http://source.winehq.org/git/wine.git/?a=commit;h=56621638dfd00736ec5ae2879e6dc5ea7e220c38
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Tue Jul 3 11:58:21 2012 +0900
gdiplus: Add parameter checks to GdipSetPropertyItem, print item contents in the trace.
---
dlls/gdiplus/image.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index a4dade8..db79eca 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -3348,7 +3348,9 @@ GpStatus WINGDIPAPI GdipSetPropertyItem(GpImage *image, GDIPCONST PropertyItem*
{
static int calls;
- TRACE("(%p,%p)\n", image, item);
+ if (!image || !item) return InvalidParameter;
+
+ TRACE("(%p,%p:%#x,%u,%u,%p)\n", image, item, item->id, item->type, item->length, item->value);
if(!(calls++))
FIXME("not implemented\n");
More information about the wine-cvs
mailing list