]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagpng.cpp
Fixed size buffers are not a good thing. Period.
[wxWidgets.git] / src / common / imagpng.cpp
index cfdf35d5fb5f269ab9bbf80c455459a6b3a1e190..b1fea3c1fef766158cb0cdeb0d153db1d0dbb2d8 100644 (file)
@@ -421,8 +421,6 @@ bool wxPNGHandler::DoCanRead( wxInputStream& stream )
     if ( !stream.Read(hdr, WXSIZEOF(hdr)) )
         return FALSE;
 
-    stream.SeekI(-WXSIZEOF(hdr), wxFromCurrent);
-
     return memcmp(hdr, "\211PNG", WXSIZEOF(hdr)) == 0;
 }