Hello,

I found the problem. Seems the size and chunks used when calling fread() were 
in reverse (it was probably reversed in the previous two revisions of Ogre). 
It was just a one line fix. I've attached a patch.

-- 
Regards,
Andres
Correction for MPakDataStream::read(). This reflects what's done in the
FileHandleDataStream::read() method in OgreDataStream.cpp in the Ogre library.
=====================================================================
--- src/mpakogre.cpp.bak	2008-05-04 01:05:10.000000000 -0400
+++ src/mpakogre.cpp	2008-05-04 00:56:05.000000000 -0400
@@ -219,7 +219,7 @@
 }
 
 size_t MPakDataStream::read(void *buf, size_t count) {
-	return fread(buf, count, 1, mFileHandle);
+	return fread(buf, 1, count, mFileHandle);
 }
 
 void MPakDataStream::skip(long count) {

Reply via email to