diff options
author | Marcus Comstedt | 2006-06-03 15:42:15 +0000 |
---|---|---|
committer | Marcus Comstedt | 2006-06-03 15:42:15 +0000 |
commit | d4984908ec74875b227f146071b725171c58cf6a (patch) | |
tree | f623b3e88714b66ed6198f94068e7020ac9009ed /backends | |
parent | 2f935da61fba565ca4eabd3ef77e6851ac1f0422 (diff) | |
download | scummvm-rg350-d4984908ec74875b227f146071b725171c58cf6a.tar.gz scummvm-rg350-d4984908ec74875b227f146071b725171c58cf6a.tar.bz2 scummvm-rg350-d4984908ec74875b227f146071b725171c58cf6a.zip |
Ignore bogus values of sizeimg in the header sanity check, it will get recomputed anyway.
svn-id: r22891
Diffstat (limited to 'backends')
-rw-r--r-- | backends/dc/icon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/dc/icon.cpp b/backends/dc/icon.cpp index 5f5c6154bc..66d3d6f696 100644 --- a/backends/dc/icon.cpp +++ b/backends/dc/icon.cpp @@ -143,7 +143,7 @@ bool Icon::load_image2(const void *data, int len) if(len < 40) return false; memcpy(&hdr, data, 40); - if(hdr.size != 40 || hdr.sizeimg<=0 || hdr.w<0 || hdr.h<0 || + if(hdr.size != 40 || /* hdr.sizeimg<=0 || */ hdr.w<0 || hdr.h<0 || hdr.bitcnt<0 || hdr.used<0) return false; if(!hdr.used) |