j
k
j a
j l
Daniel Lehman dlehman@esri.com wrote:
case CP_THREAD_ACP: if (NtCurrentTeb()->CurrentLocale == GetUserDefaultLCID()) return ansi_cptable; if (!IsValidCodePage(NtCurrentTeb()->CurrentLocale) || NtCurrentTeb()->CurrentLocale == GetUserDefaultLCID()) return ansi_cptable;
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.
Show replies by date
wine-devel@winehq.org
Add to favorites Remove from favorites