Skip to content

Commit

Permalink
Fix translation mapping to work.
Browse files Browse the repository at this point in the history
  • Loading branch information
ranvis committed Mar 8, 2024
1 parent 03666bf commit 0b818f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows/winl10n.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ static int getEnabled()
enabled = 0;
lng_path = get_lng_file_path_w();
if (lng_path) {
if (!load_ini_wsz(L"Default", L"Language", lng_section, lenof(lng_section), lng_path) && *lng_section == L'\0') {
if (!load_ini_wsz(L"Default", L"Language", lng_section, lenof(lng_section), lng_path) || *lng_section == L'\0') {
WCHAR cname[32];
WCHAR *cname_path;
if (!load_ini_wsz(L"Default", L"CanonicalName", cname, lenof(cname), lng_path)
Expand All @@ -459,7 +459,7 @@ static int getEnabled()
} else {
sfree(lng_path);
lng_path = cname_path;
if (!load_ini_wsz(L"Default", L"Language", lng_section, lenof(lng_section), lng_path) && *lng_section == L'\0') {
if (!load_ini_wsz(L"Default", L"Language", lng_section, lenof(lng_section), lng_path) || *lng_section == L'\0') {
sfree(lng_path);
lng_path = NULL;
}
Expand Down

0 comments on commit 0b818f9

Please sign in to comment.