From 4927de5536c9ebc423abb91b65830a618888016d Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Sun, 15 Oct 2006 19:45:33 +0000 Subject: [PATCH] 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 --- engine/server/sv_user.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/server/sv_user.c b/engine/server/sv_user.c index 8f9d9b55a..9a8a95acc 100644 --- a/engine/server/sv_user.c +++ b/engine/server/sv_user.c @@ -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)