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
e687f589
Commit
e687f589
authored
Mar 31, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl/tests: Fix a test failure on LUA Windows.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f42f8925
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
ntoskrnl.c
dlls/ntoskrnl.exe/tests/ntoskrnl.c
+11
-0
No files found.
dlls/ntoskrnl.exe/tests/ntoskrnl.c
View file @
e687f589
...
...
@@ -173,6 +173,17 @@ static BOOL testsign_create_cert(struct testsign_context *ctx)
ok
(
ret
,
"Failed to set provider info, error %#x
\n
"
,
GetLastError
());
ctx
->
root_store
=
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_REGISTRY_A
,
0
,
0
,
CERT_SYSTEM_STORE_LOCAL_MACHINE
,
"root"
);
if
(
!
ctx
->
root_store
&&
GetLastError
()
==
ERROR_ACCESS_DENIED
)
{
skip
(
"Failed to open root store.
\n
"
);
ret
=
CertFreeCertificateContext
(
ctx
->
cert
);
ok
(
ret
,
"Failed to free certificate, error %u
\n
"
,
GetLastError
());
ret
=
CryptReleaseContext
(
ctx
->
provider
,
0
);
ok
(
ret
,
"failed to release context, error %u
\n
"
,
GetLastError
());
return
FALSE
;
}
ok
(
!!
ctx
->
root_store
,
"Failed to open store, error %u
\n
"
,
GetLastError
());
ret
=
CertAddCertificateContextToStore
(
ctx
->
root_store
,
ctx
->
cert
,
CERT_STORE_ADD_ALWAYS
,
&
ctx
->
root_cert
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_ACCESS_DENIED
)
...
...
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