From c7d7e50155ddcbca6fc2143e255b6618a628db7f Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Mon, 7 Mar 2011 13:14:10 -0500 Subject: COMMON: Add a sanity assert --- common/winexe_ne.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'common') 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 -- cgit v1.2.3