[haiku-commits] r34052 - haiku/trunk/src/bin/package

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 15 Nov 2009 09:37:23 +0100 (CET)

Author: bonefish
Date: 2009-11-15 09:37:22 +0100 (Sun, 15 Nov 2009)
New Revision: 34052
Changeset: http://dev.haiku-os.org/changeset/34052/haiku

Modified:
   haiku/trunk/src/bin/package/PackageData.h
Log:
Don't return a bogus offset for inline data.


Modified: haiku/trunk/src/bin/package/PackageData.h
===================================================================
--- haiku/trunk/src/bin/package/PackageData.h   2009-11-15 02:50:16 UTC (rev 
34051)
+++ haiku/trunk/src/bin/package/PackageData.h   2009-11-15 08:37:22 UTC (rev 
34052)
@@ -17,7 +17,8 @@
                                                                        { 
return fCompressedSize; }
                        uint64                          UncompressedSize() const
                                                                        { 
return fUncompressedSize; }
-                       uint64                          Offset() const          
        { return fOffset; }
+                       uint64                          Offset() const
+                                                                       { 
return fEncodedInline ? 0 : fOffset; }
                        uint32                          Compression() const     
        { return fCompression; }
                        uint32                          ChunkSize() const       
        { return fChunkSize; }
 


Other related posts:

  • » [haiku-commits] r34052 - haiku/trunk/src/bin/package - ingo_weinhold