mirror of
https://github.com/reactos/wine.git
synced 2025-01-21 03:15:18 +00:00
cryptui: Ensure that a destination store is selected in CryptUIWizImport.
This commit is contained in:
parent
2bab6a2c5d
commit
91deb95ed5
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user