X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/36abe9d421ebb33873f012a63fbdb210ff771682..e77cba1a9c2085b15789bbdc3d38697c4670d2a7:/src/common/imagjpeg.cpp diff --git a/src/common/imagjpeg.cpp b/src/common/imagjpeg.cpp index f14027cb78..a06f0dd8f2 100644 --- a/src/common/imagjpeg.cpp +++ b/src/common/imagjpeg.cpp @@ -479,7 +479,7 @@ bool wxJPEGHandler::DoCanRead( wxInputStream& stream ) { unsigned char hdr[2]; - if ( !stream.Read(hdr, WXSIZEOF(hdr)) ) + if ( !stream.Read(hdr, WXSIZEOF(hdr)) ) // it's ok to modify the stream position here return false; return hdr[0] == 0xFF && hdr[1] == 0xD8;