winex11.drv: 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:
Piotr Caban 2019-04-03 18:23:18 +02:00 committed by Alexandre Julliard
parent 380d5dff85
commit b8f0a28e8c
3 changed files with 6 additions and 5 deletions

View file

@ -2334,7 +2334,7 @@ INT CDECL X11DRV_GetKeyNameText(LONG lParam, LPWSTR lpBuffer, INT nSize)
if (name && (vkey == VK_SHIFT || vkey == VK_CONTROL || vkey == VK_MENU))
{
char* idx = strrchr(name, '_');
if (idx && (strcasecmp(idx, "_r") == 0 || strcasecmp(idx, "_l") == 0))
if (idx && (_strnicmp(idx, "_r", -1) == 0 || _strnicmp(idx, "_l", -1) == 0))
{
LeaveCriticalSection( &kbd_section );
TRACE("found scan=%04x keyc=%u keysym=%lx modified_string=%s\n",

View file

@ -28,6 +28,7 @@
#include "winuser.h"
#include "wingdi.h"
#include "winnls.h"
#include "winternl.h"
#include "x11drv.h"
#include "imm.h"
#include "wine/debug.h"
@ -293,11 +294,11 @@ void X11DRV_SetPreeditState(HWND hwnd, BOOL fOpen)
*/
BOOL X11DRV_InitXIM( const char *input_style )
{
if (!strcasecmp(input_style, "offthespot"))
if (!_strnicmp(input_style, "offthespot", -1))
ximStyleRequest = STYLE_OFFTHESPOT;
else if (!strcasecmp(input_style, "overthespot"))
else if (!_strnicmp(input_style, "overthespot", -1))
ximStyleRequest = STYLE_OVERTHESPOT;
else if (!strcasecmp(input_style, "root"))
else if (!_strnicmp(input_style, "root", -1))
ximStyleRequest = STYLE_ROOT;
if (!XSupportsLocale())

View file

@ -800,7 +800,7 @@ static UINT get_xft_aa_flags( const LOGFONTW *lf )
if (!(value = XGetDefault( gdi_display, "Xft", "antialias" ))) break;
TRACE( "got antialias '%s'\n", value );
if (tolower(value[0]) == 'f' || tolower(value[0]) == 'n' ||
value[0] == '0' || !strcasecmp( value, "off" ))
value[0] == '0' || !_strnicmp( value, "off", -1 ))
{
ret = GGO_BITMAP;
break;