mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
(deps/7zip) Use rferror instead of ferror
This commit is contained in:
parent
db6cc3c7f9
commit
54b371b767
2
deps/7zip/7zFile.c
vendored
2
deps/7zip/7zFile.c
vendored
@ -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
8
deps/7zip/7zIn.c
vendored
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user