kernel32: Don't use strcasecmp.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
342ccda6ed
commit
2eb1849100
|
@ -339,7 +339,7 @@ static const union cptable *get_codepage_table( unsigned int codepage )
|
|||
static int charset_cmp( const void *name, const void *entry )
|
||||
{
|
||||
const struct charset_entry *charset = entry;
|
||||
return strcasecmp( name, charset->charset_name );
|
||||
return _strnicmp( name, charset->charset_name, -1 );
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
|
@ -301,8 +301,8 @@ static void create_hardware_branch(void)
|
|||
fgets(cStr, sizeof(cStr), procfile);
|
||||
fclose(procfile);
|
||||
nType = DRIVE_UNKNOWN;
|
||||
if (strncasecmp(cStr, "disk", 4) == 0) nType = DRIVE_FIXED;
|
||||
if (strncasecmp(cStr, "cdrom", 5) == 0) nType = DRIVE_CDROM;
|
||||
if (_strnicmp(cStr, "disk", 4) == 0) nType = DRIVE_FIXED;
|
||||
if (_strnicmp(cStr, "cdrom", 5) == 0) nType = DRIVE_CDROM;
|
||||
|
||||
if (nType == DRIVE_UNKNOWN) continue;
|
||||
}
|
||||
|
|
|
@ -1391,7 +1391,7 @@
|
|||
@ cdecl -private _strcmpi(str str) _stricmp
|
||||
@ cdecl -private _stricmp(str str)
|
||||
@ cdecl -private _strlwr(str)
|
||||
@ cdecl -private _strnicmp(str str long)
|
||||
@ cdecl _strnicmp(str str long) #add _strnicmp to importlib so it can be used instead of strncasecmp
|
||||
@ cdecl -private _strupr(str)
|
||||
@ cdecl -private _tolower(long) NTDLL__tolower
|
||||
@ cdecl -private _toupper(long) NTDLL__toupper
|
||||
|
|
|
@ -2886,6 +2886,8 @@ NTSYSAPI NTSTATUS WINAPI RtlpUnWaitCriticalSection(RTL_CRITICAL_SECTION *);
|
|||
NTSYSAPI NTSTATUS WINAPI vDbgPrintEx(ULONG,ULONG,LPCSTR,__ms_va_list);
|
||||
NTSYSAPI NTSTATUS WINAPI vDbgPrintExWithPrefix(LPCSTR,ULONG,ULONG,LPCSTR,__ms_va_list);
|
||||
|
||||
NTSYSAPI int __cdecl _strnicmp(LPCSTR,LPCSTR,size_t);
|
||||
|
||||
/* 32-bit only functions */
|
||||
|
||||
#ifndef _WIN64
|
||||
|
|
Loading…
Reference in New Issue