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
e66370bf
Commit
e66370bf
authored
Apr 01, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tapi32: Don't use strncasecmp.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
49ce3132
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
line.c
dlls/tapi32/line.c
+5
-4
No files found.
dlls/tapi32/line.c
View file @
e66370bf
...
...
@@ -24,6 +24,7 @@
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "winternl.h"
#include "wingdi.h"
#include "winreg.h"
#include "winnls.h"
...
...
@@ -845,7 +846,7 @@ DWORD WINAPI lineGetTranslateCapsA(HLINEAPP hLineApp, DWORD dwAPIVersion,
==
ERROR_SUCCESS
){
DWORD
size_val
;
i
++
;
if
(
strncase
cmp
(
loc_key_name
,
"location"
,
8
)
||
if
(
_strni
cmp
(
loc_key_name
,
"location"
,
8
)
||
(
RegOpenKeyA
(
hkLocations
,
loc_key_name
,
&
hsubkey
)
!=
ERROR_SUCCESS
))
continue
;
...
...
@@ -907,7 +908,7 @@ DWORD WINAPI lineGetTranslateCapsA(HLINEAPP hLineApp, DWORD dwAPIVersion,
ERROR_SUCCESS
){
DWORD
size_val
;
i
++
;
if
(
strncase
cmp
(
card_key_name
,
"card"
,
4
)
||
ERROR_SUCCESS
!=
if
(
_strni
cmp
(
card_key_name
,
"card"
,
4
)
||
ERROR_SUCCESS
!=
(
RegOpenKeyA
(
hkCards
,
card_key_name
,
&
hsubkey
)
))
continue
;
numcards
++
;
...
...
@@ -984,7 +985,7 @@ DWORD WINAPI lineGetTranslateCapsA(HLINEAPP hLineApp, DWORD dwAPIVersion,
==
ERROR_SUCCESS
){
DWORD
size_val
;
i
++
;
if
(
strncase
cmp
(
loc_key_name
,
"location"
,
8
)
||
if
(
_strni
cmp
(
loc_key_name
,
"location"
,
8
)
||
(
RegOpenKeyA
(
hkLocations
,
loc_key_name
,
&
hsubkey
)
!=
ERROR_SUCCESS
))
continue
;
...
...
@@ -1077,7 +1078,7 @@ DWORD WINAPI lineGetTranslateCapsA(HLINEAPP hLineApp, DWORD dwAPIVersion,
ERROR_SUCCESS
){
DWORD
size_val
;
i
++
;
if
(
strncase
cmp
(
card_key_name
,
"card"
,
4
)
||
if
(
_strni
cmp
(
card_key_name
,
"card"
,
4
)
||
(
RegOpenKeyA
(
hkCards
,
card_key_name
,
&
hsubkey
)
!=
ERROR_SUCCESS
))
continue
;
size_val
=
sizeof
(
DWORD
);
...
...
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