msvc.patch 598 B

12345678910111213
  1. diff --git a/src/osgPlugins/osga/OSGA_Archive.cpp b/src/osgPlugins/osga/OSGA_Archive.cpp
  2. index b9f518a..19186a7 100644
  3. --- a/src/osgPlugins/osga/OSGA_Archive.cpp
  4. +++ b/src/osgPlugins/osga/OSGA_Archive.cpp
  5. @@ -77,7 +77,7 @@ inline OSGA_Archive::pos_type ARCHIVE_POS( const std::streampos & pos )
  6. #else // older Dinkumware (eg: one included in Win Server 2003 Platform SDK )
  7. fpos_t position = pos.get_fpos_t();
  8. #endif
  9. - std::streamoff offset = pos.operator std::streamoff( ) - _FPOSOFF( position );
  10. + std::streamoff offset = 0;
  11. return OSGA_Archive::pos_type( position + offset );
  12. }