Commit 68867176 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Optimize toupper function when locale was never changed.

parent e867af3b
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment