Module: wine Branch: master Commit: 8cb9702265ff59ab39b498a1672aed0f79c9aa49 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8cb9702265ff59ab39b498a167...
Author: Juan Lang juan.lang@gmail.com Date: Sun Feb 1 13:23:04 2009 -0800
cryptui: Skip password page when moving backward through the export wizard if it wasn't shown in the first place.
---
dlls/cryptui/main.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dlls/cryptui/main.c b/dlls/cryptui/main.c index b05edec..6a8e9e8 100644 --- a/dlls/cryptui/main.c +++ b/dlls/cryptui/main.c @@ -6114,6 +6114,15 @@ static LRESULT CALLBACK export_file_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
switch (hdr->code) { + case PSN_WIZBACK: + data = (struct ExportWizData *)GetWindowLongPtrW(hwnd, DWLP_USER); + if (data->contextInfo.dwExportFormat != + CRYPTUI_WIZ_EXPORT_FORMAT_PFX) + { + SetWindowLongPtrW(hwnd, DWLP_MSGRESULT, IDD_EXPORT_FORMAT); + ret = 1; + } + break; case PSN_WIZNEXT: { HWND fileNameEdit = GetDlgItem(hwnd, IDC_EXPORT_FILENAME);