diff options
| author | Max Horn | 2010-10-18 19:29:56 +0000 | 
|---|---|---|
| committer | Max Horn | 2010-10-18 19:29:56 +0000 | 
| commit | ceae152531a9c2269b8df05f0608915040a121ac (patch) | |
| tree | 9d9fdccd9d556f81cdfab2fe35a08ce83fa2b717 | |
| parent | dd7a2f75c022cbf4d974bce980ceeb459ab0b005 (diff) | |
| download | scummvm-rg350-ceae152531a9c2269b8df05f0608915040a121ac.tar.gz scummvm-rg350-ceae152531a9c2269b8df05f0608915040a121ac.tar.bz2 scummvm-rg350-ceae152531a9c2269b8df05f0608915040a121ac.zip  | |
SCUMM: Silence MSVC 2010 code analysis warning
svn-id: r53582
| -rw-r--r-- | engines/scumm/he/resource_he.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/scumm/he/resource_he.cpp b/engines/scumm/he/resource_he.cpp index 9310b5758f..b85bef9e02 100644 --- a/engines/scumm/he/resource_he.cpp +++ b/engines/scumm/he/resource_he.cpp @@ -697,8 +697,9 @@ bool Win32ResExtractor::read_library(WinLibrary *fi) {  			/* calc_vma_size has reported error */  			return false;  		} -		fi->memory = (byte *)realloc(fi->memory, fi->total_size); -		assert(fi->memory); +		byte *ptr = (byte *)realloc(fi->memory, fi->total_size); +		assert(ptr); +		fi->memory = ptr;  		/* relocate memory, start from last section */  		pe_header = PE_HEADER(fi->memory);  | 
