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
b6a2102d
Commit
b6a2102d
authored
May 28, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
May 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: There is no strncasecmp() on Windows. So use CompareString() instead.
parent
8d7ad785
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
misc.c
dlls/setupapi/tests/misc.c
+2
-1
No files found.
dlls/setupapi/tests/misc.c
View file @
b6a2102d
...
...
@@ -25,6 +25,7 @@
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "winuser.h"
#include "winreg.h"
#include "setupapi.h"
...
...
@@ -97,7 +98,7 @@ static BOOL check_format(LPSTR path, LPSTR inf)
GetWindowsDirectory
(
check
,
MAX_PATH
);
lstrcat
(
check
,
format
);
res
=
!
strncasecmp
(
check
,
path
,
lstrlen
(
check
))
&&
res
=
CompareString
(
LOCALE_SYSTEM_DEFAULT
,
NORM_IGNORECASE
,
check
,
-
1
,
path
,
lstrlen
(
check
))
==
CSTR_EQUAL
&&
path
[
lstrlen
(
check
)]
!=
'\\'
;
return
(
!
inf
)
?
res
:
res
&&
(
inf
==
path
+
lstrlen
(
check
)
-
3
);
...
...
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