CallGetCalendarInfoEx() was being called twice even if the first call succeeded ...
authorKeith Newton <bob_corillian@hotmail.com>
Mon, 1 Jun 2020 20:45:24 +0000 (16:45 -0400)
committerGitHub <noreply@github.com>
Mon, 1 Jun 2020 20:45:24 +0000 (13:45 -0700)
commit09602102dc1926dbf0ef8c53ccb9a9313abc3a83
tree2850486353dcf22dc985a57bd76b96817f336b4b
parent7f3cdea09e0784fdd4bf23574cb54382b5f4cdad
CallGetCalendarInfoEx() was being called twice even if the first call succeeded (#37232)

* In CalendarData.CheckSpecialCalendar() when the calendar ID is GREGORIAN_US CallGetCalendarInfoEx() was being called twice even if the first call succeeded.

* Update src/libraries/System.Private.CoreLib/src/System/Globalization/CalendarData.Nls.cs

Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Keith Newton <anony@mous.com>
Co-authored-by: Tarek Mahmoud Sayed <tarekms@microsoft.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/libraries/System.Private.CoreLib/src/System/Globalization/CalendarData.Nls.cs