Juan Lang : cryptui: Skip password page when moving backward through the export wizard if it wasn 't shown in the first place.
Alexandre Julliard
julliard at winehq.org
Mon Feb 9 10:29:21 CST 2009
Module: wine
Branch: master
Commit: 8cb9702265ff59ab39b498a1672aed0f79c9aa49
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8cb9702265ff59ab39b498a1672aed0f79c9aa49
Author: Juan Lang <juan.lang at 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);
More information about the wine-cvs
mailing list