[Scummvm-cvs-logs] CVS: scummvm/bs2/driver d_sound.cpp,1.51,1.52
Oliver Kiehl
olki at users.sourceforge.net
Sat Sep 13 06:06:07 CEST 2003
Update of /cvsroot/scummvm/scummvm/bs2/driver
In directory sc8-pr-cvs1:/tmp/cvs-serv23840/driver
Modified Files:
d_sound.cpp
Log Message:
some more endian fixes
Index: d_sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/bs2/driver/d_sound.cpp,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- d_sound.cpp 13 Sep 2003 11:39:25 -0000 1.51
+++ d_sound.cpp 13 Sep 2003 13:05:52 -0000 1.52
@@ -388,14 +388,14 @@
return (0);
}
- if (!speechIndex[0] || !speechIndex[1]) {
+ if (!FROM_LE_32(speechIndex[0]) || !FROM_LE_32(speechIndex[1])) {
fp.close();
return (0);
}
fp.close();
- i = (speechIndex[1] - 1) * 2 + sizeof(_wavHeader) + 8;
+ i = (FROM_LE_32(speechIndex[1]) - 1) * 2 + sizeof(_wavHeader) + 8;
return(i);
}
More information about the Scummvm-git-logs
mailing list