msvcrt: Optimize toupper function when locale was never changed.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Piotr Caban 2019-01-23 11:59:11 +01:00 committed by Alexandre Julliard
parent e867af3bfe
commit 6886717631
1 changed files with 2 additions and 0 deletions

View File

@ -398,6 +398,8 @@ int CDECL MSVCRT__toupper_l(int c, MSVCRT__locale_t locale)
*/
int CDECL MSVCRT_toupper(int c)
{
if(initial_locale)
return c>='a' && c<='z' ? c-'a'+'A' : c;
return MSVCRT__toupper_l(c, NULL);
}