Check the result of the seek as well for good measure.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2412 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
1a5b73909a
commit
4927de5536
1 changed files with 4 additions and 1 deletions
|
@ -1493,7 +1493,10 @@ void SV_NextChunkedDownload(int chunknum)
|
|||
|
||||
if (host_client->datagram.cursize + CHUNKSIZE+5+50 > host_client->datagram.maxsize)
|
||||
return; //choked!
|
||||
VFS_SEEK (host_client->download, chunknum*CHUNKSIZE);
|
||||
|
||||
if (VFS_SEEK (host_client->download, chunknum*CHUNKSIZE) == false)
|
||||
return;
|
||||
|
||||
i = VFS_READ (host_client->download, buffer, CHUNKSIZE);
|
||||
|
||||
if (i > 0)
|
||||
|
|
Loading…
Reference in a new issue