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
472984f5
Commit
472984f5
authored
Oct 28, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Oct 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Fix a failing test on Windows.
parent
a900f5e0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
cryptui.c
dlls/cryptui/tests/cryptui.c
+8
-8
No files found.
dlls/cryptui/tests/cryptui.c
View file @
472984f5
...
...
@@ -368,7 +368,7 @@ static void test_crypt_ui_wiz_import(void)
ok
(
!
ret
&&
GetLastError
()
==
E_INVALIDARG
,
"expected E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
/* Imports the following cert--self-signed, with no basic constraints set--
* to the
root
store. Puts up a dialog at the end if it succeeds or fails.
* to the
CA
store. Puts up a dialog at the end if it succeeds or fails.
*/
info
.
u
.
pCertContext
=
CertCreateCertificateContext
(
X509_ASN_ENCODING
,
v1CertWithValidPubKey
,
sizeof
(
v1CertWithValidPubKey
));
...
...
@@ -377,15 +377,15 @@ static void test_crypt_ui_wiz_import(void)
ok
(
ret
,
"CryptUIWizImport failed: %08x
\n
"
,
GetLastError
());
if
(
ret
)
{
static
const
WCHAR
Root
[]
=
{
'R'
,
'o'
,
'o'
,
't
'
,
0
};
HCERTSTORE
root
=
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_W
,
0
,
0
,
CERT_SYSTEM_STORE_CURRENT_USER
,
Root
);
static
const
WCHAR
CA
[]
=
{
'C'
,
'A
'
,
0
};
HCERTSTORE
ca
=
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_W
,
0
,
0
,
CERT_SYSTEM_STORE_CURRENT_USER
,
CA
);
if
(
root
)
if
(
ca
)
{
find_and_delete_cert_in_store
(
root
,
"root"
,
info
.
u
.
pCertContext
,
"v1CertWithValidPubKey"
,
FALSE
);
CertCloseStore
(
root
,
0
);
find_and_delete_cert_in_store
(
ca
,
"CA"
,
info
.
u
.
pCertContext
,
"v1CertWithValidPubKey"
,
FALSE
);
CertCloseStore
(
ca
,
0
);
}
}
CertFreeCertificateContext
(
info
.
u
.
pCertContext
);
...
...
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