mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-09 11:51:09 +08:00
Fix zip.c compile warning:
In file included from dosbox.cpp:83: ../vs2015/zlib/contrib/minizip/zip.c: In function ‘ZPOS64_T zip64local_SearchCentralDir(const zlib_filefunc64_32_def*, voidpf)’: ../vs2015/zlib/contrib/minizip/zip.c:521:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 521 | for (i=(int)uReadSize-3; (i--)>0;) | ^~~ ../vs2015/zlib/contrib/minizip/zip.c:529:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 529 | if (uPosFound!=0) | ^~
This commit is contained in:
parent
1af63ad365
commit
b39aa574d0
@ -518,15 +518,15 @@ local ZPOS64_T zip64local_SearchCentralDir(const zlib_filefunc64_32_def* pzlib_f
|
||||
if (ZREAD64(*pzlib_filefunc_def,filestream,buf,uReadSize)!=uReadSize)
|
||||
break;
|
||||
|
||||
for (i=(int)uReadSize-3; (i--)>0;)
|
||||
for (i=(int)uReadSize-3; (i--)>0;) {
|
||||
if (((*(buf+i))==0x50) && ((*(buf+i+1))==0x4b) &&
|
||||
((*(buf+i+2))==0x05) && ((*(buf+i+3))==0x06))
|
||||
{
|
||||
uPosFound = uReadPos+i;
|
||||
break;
|
||||
}
|
||||
|
||||
if (uPosFound!=0)
|
||||
}
|
||||
if (uPosFound!=0)
|
||||
break;
|
||||
}
|
||||
TRYFREE(buf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user