Skip to content

Fix inverted null check in time_zone_name_win.cc#340

Open
yukawa wants to merge 1 commit intogoogle:masterfrom
yukawa:fix_icu_load_null_check
Open

Fix inverted null check in time_zone_name_win.cc#340
yukawa wants to merge 1 commit intogoogle:masterfrom
yukawa:fix_icu_load_null_check

Conversation

@yukawa
Copy link
Contributor

@yukawa yukawa commented Mar 15, 2026

This commit follows up the previous commit (27ca173), which aimed to improve the code but ended up introducing an inverted null check in time_zone_name_win.cc. As a result, LoadIcuGetTimeZoneIDForWindowsID() currently returns nullptr when it should be returning a valid time zone ID.

This is also a preparation for implementing TimeZoneIf with Windows time APIs (#328).

This commit follows up the previous commit [1], which aimed to improve
the code but ended up introducing an inverted null check in
time_zone_name_win.cc. As a result, LoadIcuGetTimeZoneIDForWindowsID()
currently returns nullptr when it should be returning a valid time zone
ID.

This is also a preparation for implementing TimeZoneIf with Windows time
APIs (google#328).

[1] 27ca173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant