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
b2fefc0f
Commit
b2fefc0f
authored
Jan 24, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jan 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Move code for enabling the PFX export format to the correct dialog proc.
parent
21404598
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
main.c
dlls/cryptui/main.c
+5
-3
No files found.
dlls/cryptui/main.c
View file @
b2fefc0f
...
@@ -5557,9 +5557,13 @@ static LRESULT CALLBACK export_format_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
...
@@ -5557,9 +5557,13 @@ static LRESULT CALLBACK export_format_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
{
{
PROPSHEETPAGEW
*
page
=
(
PROPSHEETPAGEW
*
)
lp
;
PROPSHEETPAGEW
*
page
=
(
PROPSHEETPAGEW
*
)
lp
;
int
defaultFormatID
;
int
defaultFormatID
;
BOOL
hasPrivateKey
;
data
=
(
struct
ExportWizData
*
)
page
->
lParam
;
data
=
(
struct
ExportWizData
*
)
page
->
lParam
;
SetWindowLongPtrW
(
hwnd
,
DWLP_USER
,
(
LPARAM
)
data
);
SetWindowLongPtrW
(
hwnd
,
DWLP_USER
,
(
LPARAM
)
data
);
hasPrivateKey
=
export_info_has_private_key
(
data
->
pExportInfo
);
if
(
hasPrivateKey
)
EnableWindow
(
GetDlgItem
(
hwnd
,
IDC_EXPORT_FORMAT_PFX
),
TRUE
);
switch
(
data
->
contextInfo
.
dwExportFormat
)
switch
(
data
->
contextInfo
.
dwExportFormat
)
{
{
case
CRYPTUI_WIZ_EXPORT_FORMAT_BASE64
:
case
CRYPTUI_WIZ_EXPORT_FORMAT_BASE64
:
...
@@ -5569,7 +5573,7 @@ static LRESULT CALLBACK export_format_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
...
@@ -5569,7 +5573,7 @@ static LRESULT CALLBACK export_format_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
defaultFormatID
=
IDC_EXPORT_FORMAT_CMS
;
defaultFormatID
=
IDC_EXPORT_FORMAT_CMS
;
break
;
break
;
case
CRYPTUI_WIZ_EXPORT_FORMAT_PFX
:
case
CRYPTUI_WIZ_EXPORT_FORMAT_PFX
:
if
(
export_info_has_private_key
(
data
->
pExportInfo
)
)
if
(
hasPrivateKey
)
defaultFormatID
=
IDC_EXPORT_FORMAT_PFX
;
defaultFormatID
=
IDC_EXPORT_FORMAT_PFX
;
else
else
defaultFormatID
=
IDC_EXPORT_FORMAT_DER
;
defaultFormatID
=
IDC_EXPORT_FORMAT_DER
;
...
@@ -5882,8 +5886,6 @@ static LRESULT CALLBACK export_file_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
...
@@ -5882,8 +5886,6 @@ static LRESULT CALLBACK export_file_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
data
=
(
struct
ExportWizData
*
)
page
->
lParam
;
data
=
(
struct
ExportWizData
*
)
page
->
lParam
;
SetWindowLongPtrW
(
hwnd
,
DWLP_USER
,
(
LPARAM
)
data
);
SetWindowLongPtrW
(
hwnd
,
DWLP_USER
,
(
LPARAM
)
data
);
if
(
export_info_has_private_key
(
data
->
pExportInfo
))
EnableWindow
(
GetDlgItem
(
hwnd
,
IDC_EXPORT_FORMAT_PFX
),
TRUE
);
break
;
break
;
}
}
case
WM_NOTIFY
:
case
WM_NOTIFY
:
...
...
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