diff src/madplug/input.c @ 783:83a38bcfe7c8 trunk

[svn] - check the result of vfs_fread() strictly.
author yaz
date Mon, 05 Mar 2007 00:48:01 -0800
parents 8366ad444313
children 5ddfe9eac8ee
line wrap: on
line diff
--- a/src/madplug/input.c	Mon Mar 05 00:28:52 2007 -0800
+++ b/src/madplug/input.c	Mon Mar 05 00:48:01 2007 -0800
@@ -557,9 +557,8 @@
     /* simply read to data from the file */
     len = vfs_fread(buffer, 1, buffer_size, info->infile); //vfs_fread returns num of elements.
 
-    if(len == 0){
-	    if(info->playback)
-		    info->playback->eof = TRUE;
+    if(len == 0 && info->playback){
+        info->playback->eof = TRUE;
     }
 
 #ifdef DEBUG