[Scummvm-cvs-logs] SF.net SVN: scummvm: [30178] scummvm/trunk/engines/scumm/he/script_v72he. cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Thu Jan 3 04:34:25 CET 2008


Revision: 30178
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30178&view=rev
Author:   Kirben
Date:     2008-01-02 19:34:25 -0800 (Wed, 02 Jan 2008)

Log Message:
-----------
Fix endian issue in checkArrayLimits().

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/he/script_v72he.cpp

Modified: scummvm/trunk/engines/scumm/he/script_v72he.cpp
===================================================================
--- scummvm/trunk/engines/scumm/he/script_v72he.cpp	2008-01-03 03:22:14 UTC (rev 30177)
+++ scummvm/trunk/engines/scumm/he/script_v72he.cpp	2008-01-03 03:34:25 UTC (rev 30178)
@@ -1965,7 +1965,7 @@
 	ArrayHeader *ah = (ArrayHeader *)getResourceAddress(rtString, readVar(array));
 	assert(ah);
 	if ((int)FROM_LE_32(ah->dim2start) > dim2start || (int)FROM_LE_32(ah->dim2end) < dim2end || (int)FROM_LE_32(ah->dim1start) > dim1start || (int)FROM_LE_32(ah->dim1end) < dim1end) {
-		error("Invalid array access (%d,%d,%d,%d) limit (%d,%d,%d,%d)", dim2start, dim2end, dim1start, dim1end, ah->dim2start, ah->dim2end, ah->dim1start, ah->dim1end);
+		error("Invalid array access (%d,%d,%d,%d) limit (%d,%d,%d,%d)", dim2start, dim2end, dim1start, dim1end, FROM_LE_32(ah->dim2start), FROM_LE_32(ah->dim2end), FROM_LE_32(ah->dim1start), FROM_LE_32(ah->dim1end));
 	}
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list