Piotr Caban : kernel32: Don't use toupper.

Alexandre Julliard julliard at winehq.org
Wed Mar 27 17:27:37 CDT 2019


Module: wine
Branch: master
Commit: 342ccda6ed28efc69071660f22ddde4e7ae94d87
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=342ccda6ed28efc69071660f22ddde4e7ae94d87

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Wed Mar 27 14:08:06 2019 +0100

kernel32: Don't use toupper.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kernel32/lzexpand.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/kernel32/lzexpand.c b/dlls/kernel32/lzexpand.c
index 319c1c8..4b2ec2e 100644
--- a/dlls/kernel32/lzexpand.c
+++ b/dlls/kernel32/lzexpand.c
@@ -46,6 +46,7 @@
 
 #include "windef.h"
 #include "winbase.h"
+#include "winternl.h"
 #include "lzexpand.h"
 
 #include "wine/unicode.h"
@@ -285,7 +286,7 @@ INT WINAPI GetExpandedNameA( LPSTR in, LPSTR out )
 		if (fnislowercased)
 			head.lastchar=tolower(head.lastchar);
 		else
-			head.lastchar=toupper(head.lastchar);
+			head.lastchar=RtlUpperChar(head.lastchar);
 	}
 
 	/* now look where to replace the last character */




More information about the wine-cvs mailing list