Fix compilation with Visual Studio.

This commit is contained in:
Ghislain MARY 2014-08-03 21:04:09 +02:00
parent 7d7c860c97
commit 09b56423dc

View file

@ -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);