Skip to content
Permalink
Browse files
Temporary fix for (re)opening files in lzma archives (thanks, Sam!)
  • Loading branch information
icculus committed Jun 21, 2009
1 parent 5323b6a commit 71fc15fd19e4760fbb26cd6b0e3105f270be38c3
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/archiver_lzma.c
@@ -649,6 +649,7 @@ static fvoid *LZMA_openRead(dvoid *opaque, const char *name, int *fileExists)
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);

0 comments on commit 71fc15f

Please sign in to comment.