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
b9917661
Commit
b9917661
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: Store input file as a store in the file page of CryptUIWizImport.
parent
db91fdfa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
main.c
dlls/cryptui/main.c
+18
-5
No files found.
dlls/cryptui/main.c
View file @
b9917661
...
...
@@ -3781,7 +3781,8 @@ struct ImportWizData
{
DWORD
dwFlags
;
LPCWSTR
pwszWizardTitle
;
PCCRYPTUI_WIZ_IMPORT_SRC_INFO
pImportSrc
;
CRYPTUI_WIZ_IMPORT_SRC_INFO
importSrc
;
BOOL
freeSource
;
HCERTSTORE
hDestCertStore
;
};
...
...
@@ -3804,8 +3805,10 @@ static BOOL import_validate_filename(HWND hwnd, struct ImportWizData *data,
warningID
=
IDS_IMPORT_TYPE_MISMATCH
;
else
{
FIXME
(
"save %s for import
\n
"
,
debugstr_w
(
fileName
));
CertCloseStore
(
source
,
0
);
data
->
importSrc
.
dwSubjectChoice
=
CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_STORE
;
data
->
importSrc
.
u
.
hCertStore
=
source
;
data
->
freeSource
=
TRUE
;
ret
=
TRUE
;
}
if
(
warningID
)
...
...
@@ -4002,11 +4005,18 @@ static BOOL show_import_ui(DWORD dwFlags, HWND hwndParent,
{
PROPSHEETHEADERW
hdr
;
PROPSHEETPAGEW
pages
[
4
];
struct
ImportWizData
data
=
{
dwFlags
,
pwszWizardTitle
,
pImportSrc
,
hDestCertStore
};
struct
ImportWizData
data
;
FIXME
(
"
\n
"
);
data
.
dwFlags
=
dwFlags
;
data
.
pwszWizardTitle
=
pwszWizardTitle
;
if
(
pImportSrc
)
memcpy
(
&
data
.
importSrc
,
pImportSrc
,
sizeof
(
data
.
importSrc
));
else
memset
(
&
data
.
importSrc
,
0
,
sizeof
(
data
.
importSrc
));
data
.
freeSource
=
FALSE
;
data
.
hDestCertStore
=
hDestCertStore
;
memset
(
&
pages
,
0
,
sizeof
(
pages
));
pages
[
0
].
dwSize
=
sizeof
(
pages
[
0
]);
...
...
@@ -4050,6 +4060,9 @@ static BOOL show_import_ui(DWORD dwFlags, HWND hwndParent,
hdr
.
u3
.
ppsp
=
pages
;
hdr
.
nPages
=
4
;
PropertySheetW
(
&
hdr
);
if
(
data
.
freeSource
&&
data
.
importSrc
.
dwSubjectChoice
==
CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_STORE
)
CertCloseStore
(
data
.
importSrc
.
u
.
hCertStore
,
0
);
return
FALSE
;
}
...
...
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