Temporary fix for (re)opening files in lzma archives (thanks, Sam!)
authorRyan C. Gordon <icculus@icculus.org>
Sun, 21 Jun 2009 17:37:47 -0400
changeset 999 54f5a2e925ac
parent 998 974b90b56c43
child 1001 b0c6f2f4f361
Temporary fix for (re)opening files in lzma archives (thanks, Sam!)
src/archiver_lzma.c
--- a/src/archiver_lzma.c	Wed Jun 03 18:44:15 2009 -0400
+++ b/src/archiver_lzma.c	Sun Jun 21 17:37:47 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);