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