]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tarstrm.cpp
Add missing WXK constants for the control keys
[wxWidgets.git] / src / common / tarstrm.cpp
index 16f96ecf1b7718ec8511a2d1aaf96263ee020cce..9a6d851a0e121ae9117d560b9f3929a3b534818a 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        tarstrm.cpp
+// Name:        src/common/tarstrm.cpp
 // Purpose:     Streams for Tar files
 // Author:      Mike Wetherell
 // RCS-ID:      $Id$
@@ -1307,6 +1307,11 @@ bool wxTarOutputStream::WriteHeaders(wxTarEntry& entry)
         m_tarsize += rounded;
 
         *m_extendedHdr = 0;
+
+        // update m_headpos which is used to seek back to fix up the file
+        // length if it is not known in advance
+        if (m_tarstart != wxInvalidOffset)
+            m_headpos = m_tarstart + m_tarsize;
     }
 
     // if don't have extended headers just report error