[PATCH resend 1/2] krnl386.exe16: Use toupper() instead of RtlUpperChar().
Zebediah Figura
z.figura12 at gmail.com
Thu Aug 10 21:15:28 CDT 2017
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/krnl386.exe16/ne_module.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/krnl386.exe16/ne_module.c b/dlls/krnl386.exe16/ne_module.c
index 70f8a46..e7689ee 100644
--- a/dlls/krnl386.exe16/ne_module.c
+++ b/dlls/krnl386.exe16/ne_module.c
@@ -121,7 +121,7 @@ static int NE_strcasecmp( const char *str1, const char *str2 )
{
int ret = 0;
for ( ; ; str1++, str2++)
- if ((ret = RtlUpperChar(*str1) - RtlUpperChar(*str2)) || !*str1) break;
+ if ((ret = toupper(*str1) - toupper(*str2)) || !*str1) break;
return ret;
}
@@ -135,7 +135,7 @@ static int NE_strncasecmp( const char *str1, const char *str2, int len )
{
int ret = 0;
for ( ; len > 0; len--, str1++, str2++)
- if ((ret = RtlUpperChar(*str1) - RtlUpperChar(*str2)) || !*str1) break;
+ if ((ret = toupper(*str1) - toupper(*str2)) || !*str1) break;
return ret;
}
@@ -363,7 +363,7 @@ WORD NE_GetOrdinal( HMODULE16 hModule, const char *name )
/* Now copy and uppercase the string */
strcpy( buffer, name );
- for (p = buffer; *p; p++) *p = RtlUpperChar(*p);
+ for (p = buffer; *p; p++) *p = toupper(*p);
len = p - buffer;
/* First search the resident names */
@@ -1446,7 +1446,7 @@ HMODULE16 WINAPI GetModuleHandle16( LPCSTR name )
/* If uppercased 'name' matches exactly the module name of a module:
* Return its handle
*/
- for (s = tmpstr; *s; s++) *s = RtlUpperChar(*s);
+ for (s = tmpstr; *s; s++) *s = toupper(*s);
for (hModule = hFirstModule; hModule ; hModule = pModule->next)
{
--
2.7.4
More information about the wine-patches
mailing list