From ba3e90bdec197de21e6291d1daa1af8d86343233 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Fri, 30 May 2008 13:35:07 +0000 Subject: [PATCH] fixed bug ir raw_read git-svn-id: svn://kolibrios.org@799 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/media/ac97snd/ac97snd/ac97snd.vcproj | 12 +++++-- programs/media/ac97snd/ac97snd/ac97wav.c | 17 ++++++---- programs/media/ac97snd/ac97snd/k_lib.asm | 32 +++++++++++-------- programs/media/ac97snd/mpg/readers.c | 3 +- 4 files changed, 41 insertions(+), 23 deletions(-) diff --git a/programs/media/ac97snd/ac97snd/ac97snd.vcproj b/programs/media/ac97snd/ac97snd/ac97snd.vcproj index 533b82e76c..c3f6d72d15 100644 --- a/programs/media/ac97snd/ac97snd/ac97snd.vcproj +++ b/programs/media/ac97snd/ac97snd/ac97snd.vcproj @@ -227,16 +227,24 @@ > + + + buffer,rd->stream,rd->strremain); rd->stream = rd->buffer; + bytes= 0; retval=read_file (rd->hFile,rd->buffer+rd->strremain,rd->filepos, 0x10000-rd->strremain,&bytes); if( (retval==0)||(retval==6)) @@ -106,7 +107,7 @@ static int fill_reader(struct reader *rd) rd->strpos = 0; return bytes; }; - return 0; + return bytes; }; int __stdcall set_reader(struct reader *rd, unsigned int filepos)