cryptui: Skip password page when moving backward through the export wizard if it wasn't shown in the first place.

This commit is contained in:
Juan Lang 2009-02-01 13:23:04 -08:00 committed by Alexandre Julliard
parent 0eefd4fb3b
commit 8cb9702265
1 changed files with 9 additions and 0 deletions

View File

@ -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);