[Scummvm-cvs-logs] SF.net SVN: scummvm: [22891] scummvm/trunk/backends/dc/icon.cpp

marcus_c at users.sourceforge.net marcus_c at users.sourceforge.net
Sat Jun 3 17:42:21 CEST 2006


Revision: 22891
Author:   marcus_c
Date:     2006-06-03 08:42:15 -0700 (Sat, 03 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22891&view=rev

Log Message:
-----------
Ignore bogus values of sizeimg in the header sanity check, it will get recomputed anyway.

Modified Paths:
--------------
    scummvm/trunk/backends/dc/icon.cpp
Modified: scummvm/trunk/backends/dc/icon.cpp
===================================================================
--- scummvm/trunk/backends/dc/icon.cpp	2006-06-03 15:34:48 UTC (rev 22890)
+++ scummvm/trunk/backends/dc/icon.cpp	2006-06-03 15:42:15 UTC (rev 22891)
@@ -143,7 +143,7 @@
   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)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list