ntdll: Use NTDLL_tolower instead of toupper.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2019-03-26 10:26:51 +01:00 committed by Alexandre Julliard
parent 3588e5abd4
commit 073bb1d0b4
2 changed files with 3 additions and 2 deletions

View File

@ -258,5 +258,6 @@ NTSTATUS WINAPI RtlHashUnicodeString(PCUNICODE_STRING,BOOLEAN,ULONG,ULONG*);
void WINAPI LdrInitializeThunk(CONTEXT*,void**,ULONG_PTR,ULONG_PTR); void WINAPI LdrInitializeThunk(CONTEXT*,void**,ULONG_PTR,ULONG_PTR);
/* string functions */ /* string functions */
int __cdecl NTDLL_tolower( int c );
int __cdecl _stricmp( LPCSTR str1, LPCSTR str2 ); int __cdecl _stricmp( LPCSTR str1, LPCSTR str2 );
#endif #endif

View File

@ -378,7 +378,7 @@ static void pf_fixup_exponent( char *buf )
{ {
char* tmp = buf; char* tmp = buf;
while (tmp[0] && toupper(tmp[0]) != 'E') while (tmp[0] && NTDLL_tolower(tmp[0]) != 'e')
tmp++; tmp++;
if (tmp[0] && (tmp[1] == '+' || tmp[1] == '-') && if (tmp[0] && (tmp[1] == '+' || tmp[1] == '-') &&
@ -637,7 +637,7 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, __ms_va_list valis
if( pf_is_double_format( flags.Format ) ) if( pf_is_double_format( flags.Format ) )
{ {
sprintf( x, fmt, va_arg(valist, double) ); sprintf( x, fmt, va_arg(valist, double) );
if (toupper(flags.Format) == 'E' || toupper(flags.Format) == 'G') if (NTDLL_tolower(flags.Format) == 'e' || NTDLL_tolower(flags.Format) == 'g')
pf_fixup_exponent( x ); pf_fixup_exponent( x );
} }
else else