Remove StructLayoutAttribute from GdipImageCodecInfo (dotnet/corefx#38607)
authorSantiago Fernandez Madero <safern@microsoft.com>
Mon, 17 Jun 2019 21:52:19 +0000 (14:52 -0700)
committerGitHub <noreply@github.com>
Mon, 17 Jun 2019 21:52:19 +0000 (14:52 -0700)
* Remove StructLayoutAttribute from GdipImageCodecInfo

* PR Feedback

* Remove wrong comment

Commit migrated from https://github.com/dotnet/corefx/commit/422e295955841aa2d87d41812e7eef1a755f1e0e

src/libraries/System.Drawing.Common/src/System/Drawing/NativeStructs.Unix.cs

index ca82c84..4bebde3 100644 (file)
@@ -54,8 +54,8 @@ namespace System.Drawing
         internal string lfFaceName;
     }
 
-    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
-    internal struct GdipImageCodecInfo  /*Size 76 bytes*/
+    [StructLayout(LayoutKind.Sequential)]
+    internal struct GdipImageCodecInfo
     {
         internal Guid Clsid;
         internal Guid FormatID;