aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMatthew Hoops2011-03-07 13:14:10 -0500
committerMatthew Hoops2011-03-07 13:14:10 -0500
commitc7d7e50155ddcbca6fc2143e255b6618a628db7f (patch)
treeff11d70cf741850d58a399c9a56e573344283a23 /common
parentd2f8103a3bc6f719e57a7f06e9350e08def3e90c (diff)
downloadscummvm-rg350-c7d7e50155ddcbca6fc2143e255b6618a628db7f.tar.gz
scummvm-rg350-c7d7e50155ddcbca6fc2143e255b6618a628db7f.tar.bz2
scummvm-rg350-c7d7e50155ddcbca6fc2143e255b6618a628db7f.zip
COMMON: Add a sanity assert
Diffstat (limited to 'common')
-rw-r--r--common/winexe_ne.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/winexe_ne.cpp b/common/winexe_ne.cpp
index eedda1ec66..dbb982e0ee 100644
--- a/common/winexe_ne.cpp
+++ b/common/winexe_ne.cpp
@@ -111,6 +111,7 @@ bool NEResources::loadFromCompressedEXE(const String &fileName) {
memset(window, 0x20, 0x1000); // Initialize to all spaces
byte *unpackedData = (byte *)malloc(unpackedLength);
+ assert(unpackedData);
byte *dataPos = unpackedData;
// Apply simple LZSS decompression