Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Jan 13, 2022
1 parent 54857c0 commit 5c9678a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/RisohEditor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,11 @@ static inline LANGID RE_SetThreadUILanguage(LANGID LangID)
if (!s_fn)
s_fn = (FN_SetThreadUILanguage)GetProcAddress(GetModuleHandleA("kernel32"), "SetThreadUILanguage");
if (s_fn)
{
return (*s_fn)(LangID);
}
}

if (SetThreadLocale(MAKELCID(LangID, SORT_DEFAULT)))
return MAKELCID(LangID, SORT_DEFAULT);
return LangID;
return 0;
}
#undef SetThreadUILanguage
Expand Down

0 comments on commit 5c9678a

Please sign in to comment.