(deps/7zip) Use rferror instead of ferror

This commit is contained in:
twinaphex 2020-06-28 19:43:55 +02:00
parent db6cc3c7f9
commit 54b371b767
2 changed files with 7 additions and 3 deletions

2
deps/7zip/7zFile.c vendored
View File

@ -71,7 +71,7 @@ WRes File_Write(CSzFile *p, const void *data, size_t *size)
*size = rfwrite(data, 1, originalSize, p->file);
if (*size == originalSize)
return 0;
return ferror(p->file);
return rferror(p->file);
}
WRes File_Seek(CSzFile *p, int64_t *pos, ESzSeek origin)

8
deps/7zip/7zIn.c vendored
View File

@ -505,8 +505,12 @@ static SRes SzReadSwitch(CSzData *sd)
static SRes SzGetNextFolderItem(CSzData *sd, CSzFolder *folder, ISzAlloc *alloc)
{
uint32_t numCoders, numBindPairs, numPackStreams, i;
uint32_t numInStreams = 0, numOutStreams = 0;
unsigned i;
uint32_t numBindPairs = 0;
uint32_t numPackStreams = 0;
uint32_t numInStreams = 0;
uint32_t numOutStreams = 0;
uint32_t numCoders = 0;
RINOK(SzReadNumber32(sd, &numCoders));
if (numCoders > NUM_FOLDER_CODERS_MAX)