Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
85bf4040
Commit
85bf4040
authored
Dec 05, 2022
by
Alex Henrie
Committed by
Alexandre Julliard
Dec 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Use the strcasecmp function instead of reimplementing it.
parent
5d733044
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
20 deletions
+1
-20
process.c
dlls/kernel32/tests/process.c
+1
-20
No files found.
dlls/kernel32/tests/process.c
View file @
85bf4040
...
...
@@ -547,31 +547,12 @@ static WCHAR* getChildStringW(const char* sect, const char* key)
return
ret
;
}
/* FIXME: this may be moved to the wtmain.c file, because it may be needed by
* others... (windows uses stricmp while Un*x uses strcasecmp...)
*/
static
int
wtstrcasecmp
(
const
char
*
p1
,
const
char
*
p2
)
{
char
c1
,
c2
;
c1
=
c2
=
'@'
;
while
(
c1
==
c2
&&
c1
)
{
c1
=
*
p1
++
;
c2
=
*
p2
++
;
if
(
c1
!=
c2
)
{
c1
=
toupper
(
c1
);
c2
=
toupper
(
c2
);
}
}
return
c1
-
c2
;
}
static
int
strCmp
(
const
char
*
s1
,
const
char
*
s2
,
BOOL
sensitive
)
{
if
(
!
s1
&&
!
s2
)
return
0
;
if
(
!
s2
)
return
-
1
;
if
(
!
s1
)
return
1
;
return
(
sensitive
)
?
strcmp
(
s1
,
s2
)
:
wt
strcasecmp
(
s1
,
s2
);
return
(
sensitive
)
?
strcmp
(
s1
,
s2
)
:
strcasecmp
(
s1
,
s2
);
}
static
void
ok_child_string
(
int
line
,
const
char
*
sect
,
const
char
*
key
,
...
...
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