diff options
| -rw-r--r-- | common/file.cpp | 4 | ||||
| -rw-r--r-- | sound/mixer.cpp | 2 | 
2 files changed, 3 insertions, 3 deletions
diff --git a/common/file.cpp b/common/file.cpp index 809c843ecf..0872e6ef56 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -119,11 +119,11 @@ uint32 File::read(void *ptr, uint32 size) {  	if (_handle == NULL) {  		error("File is not open!"); -		return; +		return 0;  	}  	if (size == 0) -		return; +		return 0;  	if ((uint32)fread(ptr2, 1, size, _handle) != size) {  		clearerr(_handle); diff --git a/sound/mixer.cpp b/sound/mixer.cpp index 150e5009e5..8444c31ba0 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -873,7 +873,7 @@ void SoundMixer::ChannelMP3CDMusic::mix(int16 * data, uint len) {  				if (!_stream.next_frame) {  					memset(_ptr, 0, _bufferSize + MAD_BUFFER_GUARD); -					_size = fread(_ptr, 1, _bufferSize, _file); +					_size = _file->read(_ptr, _bufferSize);  					not_decoded = 0;  				} else {  					not_decoded = _stream.bufend - _stream.next_frame;  | 
