diff --git a/dlls/cryptui/cryptui_En.rc b/dlls/cryptui/cryptui_En.rc index df420bc533..4dc6ed9e0b 100644 --- a/dlls/cryptui/cryptui_En.rc +++ b/dlls/cryptui/cryptui_En.rc @@ -80,6 +80,7 @@ STRINGTABLE DISCARDABLE IDS_IMPORT_BAD_FORMAT "The file format is not recognized. Please select another file." IDS_IMPORT_OPEN_FAILED "Could not open " IDS_IMPORT_DEST_DETERMINED "Determined by the program" + IDS_IMPORT_SELECT_STORE "Please select a store" IDS_PURPOSE_SERVER_AUTH "Ensures the identify of a remote computer" IDS_PURPOSE_CLIENT_AUTH "Proves your identity to a remote computer" IDS_PURPOSE_CODE_SIGNING "Ensures software came from software publisher\nProtects software from alteration after publication" diff --git a/dlls/cryptui/cryptuires.h b/dlls/cryptui/cryptuires.h index df7fc8af81..e9f75542cc 100644 --- a/dlls/cryptui/cryptuires.h +++ b/dlls/cryptui/cryptuires.h @@ -77,6 +77,7 @@ #define IDS_IMPORT_BAD_FORMAT 1057 #define IDS_IMPORT_OPEN_FAILED 1058 #define IDS_IMPORT_DEST_DETERMINED 1059 +#define IDS_IMPORT_SELECT_STORE 1060 #define IDS_PURPOSE_SERVER_AUTH 1100 #define IDS_PURPOSE_CLIENT_AUTH 1101 diff --git a/dlls/cryptui/main.c b/dlls/cryptui/main.c index a762129862..b2bff30b4b 100644 --- a/dlls/cryptui/main.c +++ b/dlls/cryptui/main.c @@ -3983,6 +3983,19 @@ static LRESULT CALLBACK import_store_dlg_proc(HWND hwnd, UINT msg, WPARAM wp, PSWIZB_BACK | PSWIZB_NEXT); ret = TRUE; break; + case PSN_WIZNEXT: + { + data = (struct ImportWizData *)GetWindowLongPtrW(hwnd, DWLP_USER); + if (IsDlgButtonChecked(hwnd, IDC_IMPORT_SPECIFY_STORE) && + !data->hDestCertStore) + { + import_warning(data->dwFlags, hwnd, data->pwszWizardTitle, + IDS_IMPORT_SELECT_STORE); + SetWindowLongPtrW(hwnd, DWLP_MSGRESULT, 1); + ret = 1; + } + break; + } } break; }