From 5c9678a3bc86e02b6cecf4205d5d85ca050d04f1 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Thu, 13 Jan 2022 09:41:48 +0900 Subject: [PATCH] improve --- src/RisohEditor.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/RisohEditor.hpp b/src/RisohEditor.hpp index ce101b9a..dbc60754 100644 --- a/src/RisohEditor.hpp +++ b/src/RisohEditor.hpp @@ -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