Skip to content

Commit

Permalink
Change charsets to explicitly unicode in System.Drawing.Common (dotne…
Browse files Browse the repository at this point in the history
…t#36718)

* Change charsets to explicitly unicode.

* Remove ActiveIssue.
  • Loading branch information
jkoritzinsky authored and stephentoub committed Apr 9, 2019
1 parent 5023c24 commit 02d4a83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

namespace System.Drawing
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
internal struct LOGFONT
{
internal int lfHeight;
Expand Down
3 changes: 1 addition & 2 deletions src/System.Drawing.Common/tests/FontTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,6 @@ public void ToLogFont_NullGraphics_ThrowsArgumentNullException()
}
}

[ActiveIssue(36683)]
[ConditionalFact(Helpers.IsDrawingSupported)]
public void ToLogFont_DisposedGraphics_ThrowsArgumentException()
{
Expand All @@ -835,7 +834,7 @@ public void ToLogFont_DisposedGraphics_ThrowsArgumentException()
}
}

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public class LOGFONT
{
public int lfHeight;
Expand Down

0 comments on commit 02d4a83

Please sign in to comment.