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>
This commit is contained in:
parent
e867af3bfe
commit
6886717631
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue