aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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