Re: [PATCH] kernel32: use ANSI code page if current thread locale is invalid
31 Oct
2013
31 Oct
'13
8:22 p.m.
Daniel Lehman <dlehman(a)esri.com> wrote:
case CP_THREAD_ACP: - if (NtCurrentTeb()->CurrentLocale == GetUserDefaultLCID()) return ansi_cptable; + if (!IsValidCodePage(NtCurrentTeb()->CurrentLocale) || + NtCurrentTeb()->CurrentLocale == GetUserDefaultLCID()) return ansi_cptable;
Please change the checks order, so that a valid locale doesn't need to go through IsValidCodePage(). Also the check needs to be fixed, locale id is not a codepage. -- Dmitry.
4423
Age (days ago)
4423
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov