ソースを参照

Merge from 2.1 branch: lzma re-open workaround.

Ryan C. Gordon 17 年 前
親
コミット
8978c7dddc
1 ファイル変更、1 行追加、0 行削除
  1. 1 0
      archivers/lzma.c

+ 1 - 0
archivers/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 == NULL, ERR_NO_SUCH_FILE, NULL);
     BAIL_IF_MACRO(file->folder == NULL, ERR_NOT_A_FILE, NULL);
     BAIL_IF_MACRO(file->folder == NULL, ERR_NOT_A_FILE, NULL);
 
 
+    file->position = 0;
     file->folder->references++; // Increase refcount for automatic cleanup...
     file->folder->references++; // Increase refcount for automatic cleanup...
 
 
     return(file);
     return(file);