Mercurial > pidgin
diff src/protocols/oscar/ft.c @ 4646:440d3d870b84
[gaim-migrate @ 4956]
This is a fix for the whole "The Dude received a file but it
doesn't agree with original thing." Now it agrees with the
original even if it doesn't agree with the original. I should
fix it. I'll do it later, cutie. I realized that I want to
store a bunch of this stuff in libfaim rather than oscar.
And I'm going to outsource development and try to synergize
with a group of wood nymphs.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 04 Mar 2003 06:40:20 +0000 |
parents | 3c7d4a060d30 |
children | 4938d12f6d48 |
line wrap: on
line diff
--- a/src/protocols/oscar/ft.c Tue Mar 04 02:31:05 2003 +0000 +++ b/src/protocols/oscar/ft.c Tue Mar 04 06:40:20 2003 +0000 @@ -739,7 +739,7 @@ * "AIM_CB_OFT_DONE" message, and "0x02" for everything else. * @return Return 0 if no errors, otherwise return the error number. */ -faim_export int aim_oft_sendheader(aim_session_t *sess, aim_conn_t *conn, fu16_t type, const fu8_t *cookie, const char *filename, fu16_t filesdone, fu16_t numfiles, fu32_t size, fu32_t totsize, fu32_t modtime, fu32_t checksum, fu8_t flags) +faim_export int aim_oft_sendheader(aim_session_t *sess, aim_conn_t *conn, fu16_t type, const fu8_t *cookie, const char *filename, fu16_t filesdone, fu16_t numfiles, fu32_t size, fu32_t totsize, fu32_t modtime, fu32_t checksum, fu8_t flags, fu32_t bytesreceived, fu32_t recvcsum) { aim_frame_t *newoft; struct aim_fileheader_t *fh; @@ -765,9 +765,11 @@ fh->size = size; fh->modtime = modtime; fh->checksum = checksum; + fh->nrecvd = bytesreceived; + fh->recvcsum = recvcsum; strncpy(fh->idstring, "OFT_Windows ICBMFT V1.1 32", sizeof(fh->idstring)); - fh->flags = 0x02; + fh->flags = flags; fh->lnameoffset = 0x1a; fh->lsizeoffset = 0x10; memset(fh->dummy, 0, sizeof(fh->dummy));