[Scummvm-cvs-logs] SF.net SVN: scummvm:[52542] scummvm/trunk/engines/sci/engine/script_patches .cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sun Sep 5 13:10:49 CEST 2010
Revision: 52542
http://scummvm.svn.sourceforge.net/scummvm/?rev=52542&view=rev
Author: thebluegr
Date: 2010-09-05 11:10:49 +0000 (Sun, 05 Sep 2010)
Log Message:
-----------
SCI: Fix for alignment exception issue, reported by Bluddy
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/script_patches.cpp
Modified: scummvm/trunk/engines/sci/engine/script_patches.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/script_patches.cpp 2010-09-05 10:59:44 UTC (rev 52541)
+++ scummvm/trunk/engines/sci/engine/script_patches.cpp 2010-09-05 11:10:49 UTC (rev 52542)
@@ -709,7 +709,7 @@
uint32 DWordOffset = 0;
// first search for the magic DWORD
while (DWordOffset < searchLimit) {
- if (magicDWord == *(const uint32 *)(scriptData + DWordOffset)) {
+ if (magicDWord == READ_UINT32(scriptData + DWordOffset)) {
// magic DWORD found, check if actual signature matches
uint32 offset = DWordOffset + signature->magicOffset;
uint32 byteOffset = offset;
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