4 Jun
2025
4 Jun
'25
9:06 p.m.
From: Piotr Caban <piotr(a)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) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8198