From: Piotr Caban piotr@codeweavers.com
--- dlls/msvcrt/ctype.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcrt/ctype.c b/dlls/msvcrt/ctype.c index 1297bc56046..89d25e5e5e5 100644 --- a/dlls/msvcrt/ctype.c +++ b/dlls/msvcrt/ctype.c @@ -483,9 +483,9 @@ int CDECL _toupper_l(int c, _locale_t locale)
if((unsigned)c < 256) { - if(locinfo->pctype[c] & _LEADBYTE) - return c; - return locinfo->pcumap[c]; + if(locinfo->pctype[c] & _LOWER) + return locinfo->pcumap[c]; + return c; }
if(locinfo->pctype[(c>>8)&255] & _LEADBYTE)