[PATCH resend 2/2] ntdll: Use toupper() in RtlUpperChar().

Zebediah Figura z.figura12 at gmail.com
Thu Aug 10 21:15:29 CDT 2017


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/ntdll/rtlstr.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/dlls/ntdll/rtlstr.c b/dlls/ntdll/rtlstr.c
index 3013658..c7039fc 100644
--- a/dlls/ntdll/rtlstr.c
+++ b/dlls/ntdll/rtlstr.c
@@ -929,11 +929,7 @@ NTSTATUS WINAPI RtlUnicodeToOemN( LPSTR dst, DWORD dstlen, LPDWORD reslen,
  */
 CHAR WINAPI RtlUpperChar( CHAR ch )
 {
-    if (ch >= 'a' && ch <= 'z') {
-        return ch - 'a' + 'A';
-    } else {
-        return ch;
-    } /* if */
+    return toupper(ch);
 }
 
 
-- 
2.7.4




More information about the wine-patches mailing list