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
d5a5f53b
Commit
d5a5f53b
authored
Jan 26, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Get rid of strncmpW().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c334d250
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
encode.c
dlls/crypt32/tests/encode.c
+1
-8
No files found.
dlls/crypt32/tests/encode.c
View file @
d5a5f53b
...
...
@@ -1922,13 +1922,6 @@ static void test_encodeUnicodeNameValue(DWORD dwEncoding)
}
}
static
inline
int
strncmpW
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
,
int
n
)
{
if
(
n
<=
0
)
return
0
;
while
((
--
n
>
0
)
&&
*
str1
&&
(
*
str1
==
*
str2
))
{
str1
++
;
str2
++
;
}
return
*
str1
-
*
str2
;
}
static
void
test_decodeUnicodeNameValue
(
DWORD
dwEncoding
)
{
DWORD
i
;
...
...
@@ -1951,7 +1944,7 @@ static void test_decodeUnicodeNameValue(DWORD dwEncoding)
ok
(
value
->
dwValueType
==
unicodeResults
[
i
].
valueType
,
"Expected value type %d, got %d
\n
"
,
unicodeResults
[
i
].
valueType
,
value
->
dwValueType
);
ok
(
!
strncmpW
((
LPWSTR
)
value
->
Value
.
pbData
,
unicodeResults
[
i
].
str
,
ok
(
!
wcsncmp
((
LPWSTR
)
value
->
Value
.
pbData
,
unicodeResults
[
i
].
str
,
value
->
Value
.
cbData
/
sizeof
(
WCHAR
)),
"Unexpected decoded value for index %d (value type %d)
\n
"
,
i
,
unicodeResults
[
i
].
valueType
);
...
...
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