]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagjpeg.cpp
Make this header SWIG-safe
[wxWidgets.git] / src / common / imagjpeg.cpp
index f14027cb78d4bd0ed122b7e051eef07a2e646759..a06f0dd8f2c15fbd7ed831e4c851c9ea0f64039b 100644 (file)
@@ -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;