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
f9e5c96e
Commit
f9e5c96e
authored
Sep 01, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Sep 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust/tests: Fix test for pfnAddSgnr2Chain.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
225c43b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
softpub.c
dlls/wintrust/tests/softpub.c
+5
-6
No files found.
dlls/wintrust/tests/softpub.c
View file @
f9e5c96e
...
...
@@ -176,16 +176,15 @@ static void test_utils(SAFE_PROVIDER_FUNCTIONS *funcs)
ok
(
data
.
csSigners
==
2
,
"Expected 2 signers, got %d
\n
"
,
data
.
csSigners
);
ok
(
!
memcmp
(
&
data
.
pasSigners
[
1
],
&
sgnr
,
sizeof
(
sgnr
)),
"Unexpected data in signer
\n
"
);
/* This also adds, but the
data aren't copi
ed */
/* This also adds, but the
index is ignor
ed */
sgnr
.
cbStruct
=
sizeof
(
DWORD
);
ret
=
funcs
->
pfnAddSgnr2Chain
(
&
data
,
FALSE
,
0
,
&
sgnr
);
ok
(
ret
,
"pfnAddSgnr2Chain failed: %08x
\n
"
,
GetLastError
());
ok
(
data
.
csSigners
==
3
,
"Expected 3 signers, got %d
\n
"
,
data
.
csSigners
);
ok
(
data
.
pasSigners
[
0
].
cbStruct
==
0
,
"Unexpected data size %d
\n
"
,
data
.
pasSigners
[
0
].
cbStruct
);
ok
(
data
.
pasSigners
[
0
].
sftVerifyAsOf
.
dwLowDateTime
==
0
,
"Unexpected verify time %d
\n
"
,
data
.
pasSigners
[
0
].
sftVerifyAsOf
.
dwLowDateTime
);
sgnr
.
sftVerifyAsOf
.
dwLowDateTime
=
0
;
todo_wine
ok
(
!
memcmp
(
&
data
.
pasSigners
[
2
],
&
sgnr
,
sizeof
(
sgnr
)),
"Unexpected data in signer
\n
"
);
/* But too large a thing isn't added */
sgnr
.
cbStruct
=
sizeof
(
sgnr
)
+
sizeof
(
DWORD
);
SetLastError
(
0xdeadbeef
);
...
...
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