Merge from 2.1 branch: lzma re-open workaround. stable-2.0
authorRyan C. Gordon <icculus@icculus.org>
Sun, 21 Jun 2009 17:42:20 -0400
branchstable-2.0
changeset 1000 66f622c889bc
parent 996 0410dc655d45
child 1004 cd500847dbc9
Merge from 2.1 branch: lzma re-open workaround.
archivers/lzma.c
--- a/archivers/lzma.c	Sun May 03 01:24:41 2009 -0700
+++ b/archivers/lzma.c	Sun Jun 21 17:42:20 2009 -0400
@@ -649,6 +649,7 @@
     BAIL_IF_MACRO(file == NULL, ERR_NO_SUCH_FILE, NULL);
     BAIL_IF_MACRO(file->folder == NULL, ERR_NOT_A_FILE, NULL);
 
+    file->position = 0;
     file->folder->references++; // Increase refcount for automatic cleanup...
 
     return(file);