From 8cb9702265ff59ab39b498a1672aed0f79c9aa49 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Sun, 1 Feb 2009 13:23:04 -0800 Subject: [PATCH] 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 file changed, 9 insertions(+) diff --git a/dlls/cryptui/main.c b/dlls/cryptui/main.c index b05edec0c52..6a8e9e82a7d 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);