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
48ae4314
Commit
48ae4314
authored
Nov 17, 2013
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust/tests: Accept the CryptCATAdminAcquireContext win8 results.
parent
55928a90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
crypt.c
dlls/wintrust/crypt.c
+1
-1
crypt.c
dlls/wintrust/tests/crypt.c
+13
-5
No files found.
dlls/wintrust/crypt.c
View file @
48ae4314
...
...
@@ -113,7 +113,7 @@ BOOL WINAPI CryptCATAdminAcquireContext(HCATADMIN *catAdmin,
TRACE
(
"%p %s %x
\n
"
,
catAdmin
,
debugstr_guid
(
sys
),
dwFlags
);
if
(
!
catAdmin
)
if
(
!
catAdmin
||
dwFlags
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
...
...
dlls/wintrust/tests/crypt.c
View file @
48ae4314
...
...
@@ -284,13 +284,21 @@ static void test_context(void)
ret
=
pCryptCATAdminReleaseContext
(
hca
,
0
);
ok
(
ret
,
"Expected success, got FALSE with %d
\n
"
,
GetLastError
());
/* Flags not equal to 0 */
hca
=
(
void
*
)
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
/* Flags is documented as unused, but the parameter is checked since win8 */
ret
=
pCryptCATAdminAcquireContext
(
&
hca
,
&
unknown
,
1
);
ok
(
ret
,
"Expected success, got FALSE with %d
\n
"
,
GetLastError
());
ok
(
hca
!=
NULL
,
"Expected a context handle, got NULL
\n
"
);
ok
((
!
ret
&&
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
)
&&
(
hca
==
(
void
*
)
0xdeadbeef
))
||
broken
(
ret
&&
hca
!=
NULL
&&
hca
!=
(
void
*
)
0xdeadbeef
),
"Expected FALSE and ERROR_INVALID_PARAMETER with untouched handle, got %d and %u with %p
\n
"
,
ret
,
GetLastError
(),
hca
);
ret
=
pCryptCATAdminReleaseContext
(
hca
,
0
);
ok
(
ret
,
"Expected success, got FALSE with %d
\n
"
,
GetLastError
());
if
(
ret
&&
hca
)
{
SetLastError
(
0xdeadbeef
);
ret
=
pCryptCATAdminReleaseContext
(
hca
,
0
);
ok
(
ret
,
"Expected success, got FALSE with %d
\n
"
,
GetLastError
());
}
}
/* TODO: Check whether SHA-1 is the algorithm that's always used */
...
...
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