Skip to content

Commit

Permalink
Merge from 2.1 branch: lzma re-open workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 21, 2009
1 parent d7945d5 commit 8978c7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions archivers/lzma.c
Expand Up @@ -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);
Expand Down

0 comments on commit 8978c7d

Please sign in to comment.