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
b6682f96
Commit
b6682f96
authored
Apr 27, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Apr 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: If an input file name is given to CryptUIWizImport, show it in the wizard.
parent
2c3497b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
main.c
dlls/cryptui/main.c
+14
-2
No files found.
dlls/cryptui/main.c
View file @
b6682f96
...
...
@@ -4993,6 +4993,12 @@ static LRESULT CALLBACK import_file_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
data
=
(
struct
ImportWizData
*
)
page
->
lParam
;
SetWindowLongPtrW
(
hwnd
,
DWLP_USER
,
(
LPARAM
)
data
);
if
(
data
->
fileName
)
{
HWND
fileNameEdit
=
GetDlgItem
(
hwnd
,
IDC_IMPORT_FILENAME
);
SendMessageW
(
fileNameEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
data
->
fileName
);
}
break
;
}
case
WM_NOTIFY
:
...
...
@@ -5383,10 +5389,15 @@ static BOOL show_import_ui(DWORD dwFlags, HWND hwndParent,
data
.
dwFlags
=
dwFlags
;
data
.
pwszWizardTitle
=
pwszWizardTitle
;
if
(
pImportSrc
)
{
memcpy
(
&
data
.
importSrc
,
pImportSrc
,
sizeof
(
data
.
importSrc
));
data
.
fileName
=
(
LPWSTR
)
pImportSrc
->
u
.
pwszFileName
;
}
else
{
memset
(
&
data
.
importSrc
,
0
,
sizeof
(
data
.
importSrc
));
data
.
fileName
=
NULL
;
data
.
fileName
=
NULL
;
}
data
.
freeSource
=
FALSE
;
data
.
hDestCertStore
=
hDestCertStore
;
data
.
freeDest
=
FALSE
;
...
...
@@ -5470,7 +5481,8 @@ static BOOL show_import_ui(DWORD dwFlags, HWND hwndParent,
hdr
.
u4
.
pszbmWatermark
=
MAKEINTRESOURCEW
(
IDB_CERT_WATERMARK
);
hdr
.
u5
.
pszbmHeader
=
MAKEINTRESOURCEW
(
IDB_CERT_HEADER
);
PropertySheetW
(
&
hdr
);
HeapFree
(
GetProcessHeap
(),
0
,
data
.
fileName
);
if
(
data
.
fileName
!=
data
.
importSrc
.
u
.
pwszFileName
)
HeapFree
(
GetProcessHeap
(),
0
,
data
.
fileName
);
if
(
data
.
freeSource
&&
data
.
importSrc
.
dwSubjectChoice
==
CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_STORE
)
CertCloseStore
(
data
.
importSrc
.
u
.
hCertStore
,
0
);
...
...
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