gdiplus: Add parameter checks to GdipSetPropertyItem, print item contents in the trace.
Dmitry Timoshkov
dmitry at baikal.ru
Mon Jul 2 21:58:21 CDT 2012
---
dlls/gdiplus/image.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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");
--
1.7.11.1
More information about the wine-patches
mailing list