X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/79fa23744b2c622ebe9ff89a3ee8c8ec8017ee3b..a9cb577a6f19ea0d3bf0d59c988df9e002b29110:/src/common/imagpng.cpp diff --git a/src/common/imagpng.cpp b/src/common/imagpng.cpp index cfdf35d5fb..b1fea3c1fe 100644 --- a/src/common/imagpng.cpp +++ b/src/common/imagpng.cpp @@ -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; }