Juan Lang : cryptui: Set default export format based on whether the private key is to be exported .
Alexandre Julliard
julliard at winehq.org
Mon Feb 9 10:29:14 CST 2009
Module: wine
Branch: master
Commit: f09b7fa12fbd8c7227d64f494c051c47fbb307c6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f09b7fa12fbd8c7227d64f494c051c47fbb307c6
Author: Juan Lang <juan.lang at gmail.com>
Date: Sun Feb 1 11:06:44 2009 -0800
cryptui: Set default export format based on whether the private key is to be exported.
---
dlls/cryptui/main.c | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/dlls/cryptui/main.c b/dlls/cryptui/main.c
index 36ba3f7..13ad832 100644
--- a/dlls/cryptui/main.c
+++ b/dlls/cryptui/main.c
@@ -5570,12 +5570,12 @@ static LRESULT CALLBACK export_private_key_dlg_proc(HWND hwnd, UINT msg,
WPARAM wp, LPARAM lp)
{
LRESULT ret = 0;
+ struct ExportWizData *data;
switch (msg)
{
case WM_INITDIALOG:
{
- struct ExportWizData *data;
PROPSHEETPAGEW *page = (PROPSHEETPAGEW *)lp;
data = (struct ExportWizData *)page->lParam;
@@ -5595,6 +5595,21 @@ static LRESULT CALLBACK export_private_key_dlg_proc(HWND hwnd, UINT msg,
PSWIZB_BACK | PSWIZB_NEXT);
ret = TRUE;
break;
+ case PSN_WIZNEXT:
+ data = (struct ExportWizData *)GetWindowLongPtrW(hwnd, DWLP_USER);
+ if (IsDlgButtonChecked(hwnd, IDC_EXPORT_PRIVATE_KEY_NO))
+ {
+ data->contextInfo.dwExportFormat =
+ CRYPTUI_WIZ_EXPORT_FORMAT_DER;
+ data->contextInfo.fExportPrivateKeys = FALSE;
+ }
+ else
+ {
+ data->contextInfo.dwExportFormat =
+ CRYPTUI_WIZ_EXPORT_FORMAT_PFX;
+ data->contextInfo.fExportPrivateKeys = TRUE;
+ }
+ break;
}
break;
}
More information about the wine-cvs
mailing list