Author: spouliot
Date: 2007-03-14 08:09:40 -0500 (Wed, 14 Mar 2007)
New Revision: 74251
Modified:
trunk/libgdiplus/src/ChangeLog
trunk/libgdiplus/src/image.c
Log:
image.c: Return InvalidParameter when loading an unknown file format from a
stream. System.Drawing will throw the correct exception from this error code.
Modified: trunk/libgdiplus/src/ChangeLog
===================================================================
--- trunk/libgdiplus/src/ChangeLog 2007-03-14 13:00:41 UTC (rev 74250)
+++ trunk/libgdiplus/src/ChangeLog 2007-03-14 13:09:40 UTC (rev 74251)
@@ -1,3 +1,9 @@
+2007-03-14 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * image.c: Return InvalidParameter when loading an unknown file format
+ from a stream. System.Drawing will throw the "correct" exception from
+ this error code.
+
2007-03-13 Sebastien Pouliot <[EMAIL PROTECTED]>
* image.c: Fix codec signature compare when more than one signature-
Modified: trunk/libgdiplus/src/image.c
===================================================================
--- trunk/libgdiplus/src/image.c 2007-03-14 13:00:41 UTC (rev 74250)
+++ trunk/libgdiplus/src/image.c 2007-03-14 13:09:40 UTC (rev 74251)
@@ -2003,7 +2003,8 @@
status = gdip_load_wmf_image_from_stream_delegate (loader,
&result);
break;
default:
- status = NotImplemented;
+ /* NotImplemented looks better but this matchs MS behavior */
+ status = InvalidParameter;
break;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches