Mercurial > pidgin
diff src/protocols/msn/slplink.c @ 9226:7a00289f2ef1
[gaim-migrate @ 10022]
Some fixes from shx. The progress indicator for file transfers was being
reset to 0 after files have been sent, and files were being truncated to 0
bytes. Also, when the file was transfered, the status was being set to
"cancel." These are fixed now.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 06 Jun 2004 20:56:54 +0000 |
parents | ec2a51abcc71 |
children | ac8790437abe |
line wrap: on
line diff
--- a/src/protocols/msn/slplink.c Sun Jun 06 20:45:53 2004 +0000 +++ b/src/protocols/msn/slplink.c Sun Jun 06 20:56:54 2004 +0000 @@ -293,11 +293,14 @@ msn_slplink_send_msg(slplink, msg); - if ((slpmsg->slpcall != NULL) && - (slpmsg->slpcall->progress_cb != NULL)) + if (slpmsg->flags == 0x20 || slpmsg->flags == 0x1000030) { - slpmsg->slpcall->progress_cb(slpmsg->slpcall, slpmsg->size, len, - slpmsg->offset); + if ((slpmsg->slpcall != NULL) && + (slpmsg->slpcall->progress_cb != NULL)) + { + slpmsg->slpcall->progress_cb(slpmsg->slpcall, slpmsg->size, len, + slpmsg->offset); + } } slpmsg->offset += len; @@ -467,14 +470,18 @@ if (slpmsg->slpcall != NULL) { - GaimXfer *xfer; + if (slpmsg->flags == 0x20 || slpmsg->flags == 0x1000030) + { + GaimXfer *xfer; - xfer = slpmsg->slpcall->xfer; + xfer = slpmsg->slpcall->xfer; - if (xfer != NULL) - { - slpmsg->fp = - fopen(gaim_xfer_get_local_filename(slpmsg->slpcall->xfer), "wb"); + if (xfer != NULL) + { + slpmsg->fp = + fopen(gaim_xfer_get_local_filename(slpmsg->slpcall->xfer), + "wb"); + } } } }