Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b8f0a28e
Commit
b8f0a28e
authored
Apr 03, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Don't use strcasecmp.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
380d5dff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
keyboard.c
dlls/winex11.drv/keyboard.c
+1
-1
xim.c
dlls/winex11.drv/xim.c
+4
-3
xrender.c
dlls/winex11.drv/xrender.c
+1
-1
No files found.
dlls/winex11.drv/keyboard.c
View file @
b8f0a28e
...
...
@@ -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
"
,
...
...
dlls/winex11.drv/xim.c
View file @
b8f0a28e
...
...
@@ -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
())
...
...
dlls/winex11.drv/xrender.c
View file @
b8f0a28e
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment