76 |
static winpt_key_t k; |
static winpt_key_t k; |
77 |
gpgme_error_t err; |
gpgme_error_t err; |
78 |
HWND list; |
HWND list; |
79 |
int idx, use_desc, chk = 0; |
int idx, use_desc; |
80 |
char desc[256], file[256], *p = NULL; |
char desc[256], file[256], *p = NULL; |
81 |
char pwd[256]; |
char pwd[256]; |
82 |
char *inp_data = NULL, *revcert=NULL; |
char *inp_data = NULL, *revcert=NULL; |
122 |
|
|
123 |
case IDOK: |
case IDOK: |
124 |
list = GetDlgItem (dlg, IDC_KEYREVOKE_REASON); |
list = GetDlgItem (dlg, IDC_KEYREVOKE_REASON); |
125 |
idx = SendMessage (list, LB_GETCURSEL, NULL, NULL); |
idx = SendMessage (list, LB_GETCURSEL, 0, 0); |
126 |
if (idx < 0 || idx > 3) { |
if (idx < 0 || idx > 3) { |
127 |
msg_box (dlg, _("Please select a reason."), |
msg_box (dlg, _("Please select a reason."), |
128 |
_("Key Revocation"), MB_ERR); |
_("Key Revocation"), MB_ERR); |