mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-01 02:39:22 +00:00
Fix compilation with Visual Studio.
This commit is contained in:
parent
7d7c860c97
commit
09b56423dc
1 changed files with 2 additions and 1 deletions
|
|
@ -184,11 +184,12 @@ static void linphone_chat_message_process_response_from_post_file(void *data, co
|
|||
belle_http_provider_send_request(msg->chat_room->lc->http_provider,req,l);
|
||||
}
|
||||
if (code == 200 ) { /* file has been uploaded correctly, get server reply and send it */
|
||||
const char *body;
|
||||
/* TODO Check that the transfer has not been cancelled, note this shall be removed once the belle sip API will provide a cancel request as we shall never reach this part if the transfer is actually cancelled */
|
||||
if (msg->http_request == NULL) {
|
||||
return;
|
||||
}
|
||||
const char *body = belle_sip_message_get_body((belle_sip_message_t *)event->response);
|
||||
body = belle_sip_message_get_body((belle_sip_message_t *)event->response);
|
||||
msg->message = ms_strdup(body);
|
||||
linphone_content_uninit(msg->file_transfer_information);
|
||||
ms_free(msg->file_transfer_information);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue