Fix for GraphicsPathIterator.CopyData throws EntrypointNotFoundException when index...
authorKostadin Vasilev <kostadinvlev@gmail.com>
Tue, 17 Oct 2017 21:32:49 +0000 (17:32 -0400)
committerStephen Toub <stoub@microsoft.com>
Tue, 17 Oct 2017 21:32:49 +0000 (17:32 -0400)
commitaaf814fe6c30a5f15b3b525732b87fbbedda89f3
tree3130b44b8285fc6bdd975982f7fcf5701f0b5f2d
parent84aab7a9ffcd8a56fdc1425610bca7ce5a5c1ccb
Fix for GraphicsPathIterator.CopyData throws EntrypointNotFoundException when index is out of range. (dotnet/corefx#24656)

* Fix for GraphicsPathIterator.CopyData throws EntrypointNotFoundException when index is out of range.

* Reverting changes made in src/System.Drawing.Common/src/misc/GDI/SafeNativeMethods.cs and updating Gdiplus.cs - SafeNativeMethods.

* Removing ZeroMemory() out of kernel32. And related changes into GraphicsPathIterator.cs.

* PF feedback - Optimizing ZeroMemory().

Commit migrated from https://github.com/dotnet/corefx/commit/3b867880d9992f305757db85a9b32044f9773863
src/libraries/System.Drawing.Common/src/System/Drawing/Drawing2D/GraphicsPathIterator.cs
src/libraries/System.Drawing.Common/src/System/Drawing/Gdiplus.cs
src/libraries/System.Drawing.Common/src/misc/GDI/SafeNativeMethods.cs
src/libraries/System.Drawing.Common/tests/Drawing2D/GraphicsPathIteratorTests.cs