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:
Mark Olsen 2006-10-15 19:45:33 +00:00
parent 1a5b73909a
commit 4927de5536

View file

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