r1271 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Mar 11 17:43:25 EDT 2008


Author: tma
Date: 2008-03-11 17:43:25 -0400 (Tue, 11 Mar 2008)
New Revision: 1271

Modified:
   trunk/code/client/snd_codec_ogg.c
Log:
* (bug 3567) Fix to error handling in Ogg decoder (Joerg Dietrich)


Modified: trunk/code/client/snd_codec_ogg.c
===================================================================
--- trunk/code/client/snd_codec_ogg.c	2008-03-02 15:28:39 UTC (rev 1270)
+++ trunk/code/client/snd_codec_ogg.c	2008-03-11 21:43:25 UTC (rev 1271)
@@ -128,7 +128,7 @@
 			retVal = FS_Seek(stream->file, (long) offset, FS_SEEK_SET);
 
 			// something has gone wrong, so we return here
-			if(!(retVal == 0))
+			if(retVal < 0)
 			{
 			 return retVal;
 			}
@@ -144,7 +144,7 @@
 			retVal = FS_Seek(stream->file, (long) offset, FS_SEEK_CUR);
 
 			// something has gone wrong, so we return here
-			if(!(retVal == 0))
+			if(retVal < 0)
 			{
 			 return retVal;
 			}
@@ -163,7 +163,7 @@
 			retVal = FS_Seek(stream->file, (long) stream->length + (long) offset, FS_SEEK_SET);
 
 			// something has gone wrong, so we return here
-			if(!(retVal == 0))
+			if(retVal < 0)
 			{
 			 return retVal;
 			}




More information about the quake3-commits mailing list