559 |
int msg_type = 0; |
int msg_type = 0; |
560 |
|
|
561 |
assert (ctx); |
assert (ctx); |
562 |
|
|
563 |
msg = window_get_message (ctx->main_wnd); |
msg = window_get_message (ctx->main_wnd); |
564 |
if (!msg || strlen (msg) == 2) { |
if (!msg || strlen (msg) == 2) { |
565 |
free_if_alloc (msg); |
free_if_alloc (msg); |
587 |
viewer_dlg_proc, (LPARAM)&viewer); |
viewer_dlg_proc, (LPARAM)&viewer); |
588 |
} |
} |
589 |
} |
} |
590 |
else { |
else if (ctx->sign || ctx->encrypt) { |
591 |
if (!ctx->to && !ctx->cc && !ctx->bcc) { |
if (!ctx->to && !ctx->cc && !ctx->bcc) { |
592 |
free_if_alloc (msg); |
free_if_alloc (msg); |
593 |
return gpg_error (GPG_ERR_NO_DATA); |
return gpg_error (GPG_ERR_NO_DATA); |