Fix icon entry selection (dotnet/corefx#41048)
authorJeremy Kuhne <jkuhne@microsoft.com>
Thu, 12 Sep 2019 20:21:59 +0000 (13:21 -0700)
committerGitHub <noreply@github.com>
Thu, 12 Sep 2019 20:21:59 +0000 (13:21 -0700)
commit2fea302654c9a49b0509377482346b0973a9ec79
treeba0f58219f65785ad1476335061bab5be12a151a
parent55f5e6c6c7fd59124f5bee75e7778713afca59dc
Fix icon entry selection (dotnet/corefx#41048)

* We weren't checking the color depth properly when choosing an icon entry to extract from an icon file.

Fix, and add a test.

Commit migrated from https://github.com/dotnet/corefx/commit/3a5b86f21b498067fa920842adaf228e39b6e35a
src/libraries/System.Drawing.Common/src/System/Drawing/Icon.Windows.cs
src/libraries/System.Drawing.Common/tests/IconTests.cs