Merge from 2.1 branch: lzma re-open workaround.

This commit is contained in:
Ryan C. Gordon 2009-06-21 17:42:20 -04:00
parent d7945d5955
commit 8978c7dddc
1 changed files with 1 additions and 0 deletions

View File

@ -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);