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
dbab34e8
Commit
dbab34e8
authored
Dec 22, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Dec 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Show UI rather than failing if no import source is specified.
parent
0db90314
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
34 deletions
+40
-34
main.c
dlls/cryptui/main.c
+40
-34
No files found.
dlls/cryptui/main.c
View file @
dbab34e8
...
...
@@ -3941,9 +3941,7 @@ BOOL WINAPI CryptUIWizImport(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardT
TRACE
(
"(0x%08x, %p, %s, %p, %p)
\n
"
,
dwFlags
,
hwndParent
,
debugstr_w
(
pwszWizardTitle
),
pImportSrc
,
hDestCertStore
);
if
(
!
(
dwFlags
&
CRYPTUI_WIZ_NO_UI
))
FIXME
(
"UI not implemented
\n
"
);
if
(
!
pImportSrc
||
if
(
pImportSrc
&&
pImportSrc
->
dwSize
!=
sizeof
(
CRYPTUI_WIZ_IMPORT_SRC_INFO
))
{
SetLastError
(
E_INVALIDARG
);
...
...
@@ -3953,39 +3951,47 @@ BOOL WINAPI CryptUIWizImport(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardT
if
(
!
(
dwFlags
&
CRYPTUI_WIZ_NO_UI
))
ret
=
show_import_ui
(
dwFlags
,
hwndParent
,
pwszWizardTitle
,
pImportSrc
,
hDestCertStore
);
switch
(
pImportSrc
->
dwSubjectChoice
)
else
if
(
pImportSrc
)
{
case
CRYPTUI_WIZ_IMPORT_SUBJECT_FILE
:
ret
=
import_file
(
dwFlags
,
hwndParent
,
pwszWizardTitle
,
pImportSrc
->
u
.
pwszFileName
,
hDestCertStore
);
break
;
case
CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_CONTEXT
:
if
((
ret
=
check_context_type
(
dwFlags
,
CERT_QUERY_CONTENT_CERT
)))
ret
=
import_cert
(
pImportSrc
->
u
.
pCertContext
,
hDestCertStore
);
else
import_warn_type_mismatch
(
dwFlags
,
hwndParent
,
pwszWizardTitle
);
break
;
case
CRYPTUI_WIZ_IMPORT_SUBJECT_CRL_CONTEXT
:
if
((
ret
=
check_context_type
(
dwFlags
,
CERT_QUERY_CONTENT_CRL
)))
ret
=
import_crl
(
pImportSrc
->
u
.
pCRLContext
,
hDestCertStore
);
else
import_warn_type_mismatch
(
dwFlags
,
hwndParent
,
pwszWizardTitle
);
break
;
case
CRYPTUI_WIZ_IMPORT_SUBJECT_CTL_CONTEXT
:
if
((
ret
=
check_context_type
(
dwFlags
,
CERT_QUERY_CONTENT_CTL
)))
ret
=
import_ctl
(
pImportSrc
->
u
.
pCTLContext
,
hDestCertStore
);
else
import_warn_type_mismatch
(
dwFlags
,
hwndParent
,
pwszWizardTitle
);
break
;
case
CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_STORE
:
ret
=
import_store
(
dwFlags
,
hwndParent
,
pwszWizardTitle
,
pImportSrc
->
u
.
hCertStore
,
hDestCertStore
);
break
;
default:
WARN
(
"unknown source type: %u
\n
"
,
pImportSrc
->
dwSubjectChoice
);
switch
(
pImportSrc
->
dwSubjectChoice
)
{
case
CRYPTUI_WIZ_IMPORT_SUBJECT_FILE
:
ret
=
import_file
(
dwFlags
,
hwndParent
,
pwszWizardTitle
,
pImportSrc
->
u
.
pwszFileName
,
hDestCertStore
);
break
;
case
CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_CONTEXT
:
if
((
ret
=
check_context_type
(
dwFlags
,
CERT_QUERY_CONTENT_CERT
)))
ret
=
import_cert
(
pImportSrc
->
u
.
pCertContext
,
hDestCertStore
);
else
import_warn_type_mismatch
(
dwFlags
,
hwndParent
,
pwszWizardTitle
);
break
;
case
CRYPTUI_WIZ_IMPORT_SUBJECT_CRL_CONTEXT
:
if
((
ret
=
check_context_type
(
dwFlags
,
CERT_QUERY_CONTENT_CRL
)))
ret
=
import_crl
(
pImportSrc
->
u
.
pCRLContext
,
hDestCertStore
);
else
import_warn_type_mismatch
(
dwFlags
,
hwndParent
,
pwszWizardTitle
);
break
;
case
CRYPTUI_WIZ_IMPORT_SUBJECT_CTL_CONTEXT
:
if
((
ret
=
check_context_type
(
dwFlags
,
CERT_QUERY_CONTENT_CTL
)))
ret
=
import_ctl
(
pImportSrc
->
u
.
pCTLContext
,
hDestCertStore
);
else
import_warn_type_mismatch
(
dwFlags
,
hwndParent
,
pwszWizardTitle
);
break
;
case
CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_STORE
:
ret
=
import_store
(
dwFlags
,
hwndParent
,
pwszWizardTitle
,
pImportSrc
->
u
.
hCertStore
,
hDestCertStore
);
break
;
default:
WARN
(
"unknown source type: %u
\n
"
,
pImportSrc
->
dwSubjectChoice
);
SetLastError
(
E_INVALIDARG
);
ret
=
FALSE
;
}
}
else
{
/* Can't have no UI without specifying source */
SetLastError
(
E_INVALIDARG
);
ret
urn
FALSE
;
ret
=
FALSE
;
}
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