fix error output

This commit is contained in:
Glenn Maynard
2003-12-07 05:58:13 +00:00
parent eec38d4488
commit 4da0aa95bf
+5 -2
View File
@@ -319,8 +319,11 @@ int RageSoundReader_MP3::fill_buffer()
}
int rc = file.Read( mad->inbuf + mad->inbytes, sizeof (mad->inbuf)-mad->inbytes );
if ( rc <= 0 )
return rc;
if( rc < 0 )
{
SetError( file.GetError() );
return -1;
}
if ( rc == 0 )
return 0;