From 6e15fe32c40f366dee339a68c6cacb27463c44a3 Mon Sep 17 00:00:00 2001 From: mingkuang Date: Wed, 7 Jul 2021 10:44:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3ResolveLocaleName=E5=86=85?= =?UTF-8?q?=E9=83=A8LOCALE=5FCUSTOM=5FUNSPECIFIED=E5=A4=84=E7=90=86?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=88https://github.com/Chuyu-Team/YY-Thu?= =?UTF-8?q?nks/issues/29=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Thunks/api-ms-win-core-localization.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Thunks/api-ms-win-core-localization.hpp b/src/Thunks/api-ms-win-core-localization.hpp index a6afc58..8a9dcc0 100644 --- a/src/Thunks/api-ms-win-core-localization.hpp +++ b/src/Thunks/api-ms-win-core-localization.hpp @@ -2356,7 +2356,7 @@ namespace YY lcid = LocaleNameToLCID(Buffer, 0); //成功找到了区域,那么停止搜索 - if (lcid != 0) + if (lcid != 0 && lcid != LOCALE_CUSTOM_UNSPECIFIED) break; while(i) @@ -2376,7 +2376,7 @@ namespace YY } } - if (lcid) + if (lcid !=0 && lcid != LOCALE_CUSTOM_UNSPECIFIED) { if (lpLocaleName == nullptr || cchLocaleName == 0) {