diff options
author | Johannes Schickel | 2014-06-08 18:28:13 +0200 |
---|---|---|
committer | Johannes Schickel | 2014-06-08 18:28:13 +0200 |
commit | 257f9fd2aed29747cef578b00d6c92266c6aef56 (patch) | |
tree | 722330259f803b0e57cb3c0b14f3682fe7a33c50 | |
parent | 9e4dfe556edcb0e12ccfdb440b4f7ded8614ae1e (diff) | |
download | scummvm-rg350-257f9fd2aed29747cef578b00d6c92266c6aef56.tar.gz scummvm-rg350-257f9fd2aed29747cef578b00d6c92266c6aef56.tar.bz2 scummvm-rg350-257f9fd2aed29747cef578b00d6c92266c6aef56.zip |
WINTERMUTE: Fix endian issues in findPackageSignature.
Thanks to somaen for looking over it too.
This also silences bug #6624 "SYMBIAN: WINTERMUTE: Warnings in base_package.cpp".
-rw-r--r-- | engines/wintermute/base/file/base_package.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/base/file/base_package.cpp b/engines/wintermute/base/file/base_package.cpp index b1461283e8..ae4955390b 100644 --- a/engines/wintermute/base/file/base_package.cpp +++ b/engines/wintermute/base/file/base_package.cpp @@ -53,8 +53,8 @@ static bool findPackageSignature(Common::SeekableReadStream *f, uint32 *offset) byte buf[32768]; byte signature[8]; - ((uint32 *)signature)[0] = PACKAGE_MAGIC_1; - ((uint32 *)signature)[1] = PACKAGE_MAGIC_2; + WRITE_LE_UINT32(signature + 0, PACKAGE_MAGIC_1); + WRITE_LE_UINT32(signature + 4, PACKAGE_MAGIC_2); uint32 fileSize = (uint32)f->size(); uint32 startPos = 1024 * 1024; |