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
8cbc6f95
Commit
8cbc6f95
authored
Oct 22, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Honour hDestCertStore in CryptUIWizImport, be more verbose about its shortcomings.
parent
d1fe894a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
main.c
dlls/cryptui/main.c
+11
-7
No files found.
dlls/cryptui/main.c
View file @
8cbc6f95
...
...
@@ -156,17 +156,21 @@ BOOL WINAPI CryptUIWizImport(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardT
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
return
FALSE
;
}
/* FIXME: verify certificate and determine store name dynamically */
if
(
!
(
store
=
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_W
,
0
,
0
,
CERT_SYSTEM_STORE_CURRENT_USER
,
Root
)))
if
(
hDestCertStore
)
store
=
hDestCertStore
;
else
{
WARN
(
"unable to open certificate store
\n
"
);
CertFreeCertificateContext
(
cert
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
return
FALSE
;
FIXME
(
"certificate store should be determined dynamically, picking Root store
\n
"
);
if
(
!
(
store
=
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_W
,
0
,
0
,
CERT_SYSTEM_STORE_CURRENT_USER
,
Root
)))
{
WARN
(
"unable to open certificate store
\n
"
);
CertFreeCertificateContext
(
cert
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
return
FALSE
;
}
}
ret
=
CertAddCertificateContextToStore
(
store
,
cert
,
CERT_STORE_ADD_REPLACE_EXISTING
,
NULL
);
CertCloseStore
(
store
,
0
);
if
(
!
hDestCertStore
)
CertCloseStore
(
store
,
0
);
CertFreeCertificateContext
(
cert
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
return
ret
;
...
...
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