mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Handle as many warnings as possible
This commit is contained in:
@@ -101,7 +101,7 @@ namespace Compress.ZipFile
|
||||
return zRet;
|
||||
}
|
||||
|
||||
ulong endOfCentralDir = (ulong)_zipFs.Position;
|
||||
ulong endOfCentralDir = (ulong)_zipFs!.Position;
|
||||
zRet = EndOfCentralDirRead();
|
||||
if (zRet != ZipReturn.ZipGood)
|
||||
{
|
||||
@@ -198,7 +198,7 @@ namespace Compress.ZipFile
|
||||
{
|
||||
for (int i = 0; i < _localFilesCount - 1; i++)
|
||||
{
|
||||
if (CompressUtils.TrrntZipStringCompare(_localFiles[i].Filename, _localFiles[i + 1].Filename) < 0)
|
||||
if (CompressUtils.TrrntZipStringCompare(_localFiles[i].Filename!, _localFiles[i + 1].Filename!) < 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -213,14 +213,14 @@ namespace Compress.ZipFile
|
||||
for (int i = 0; i < _localFilesCount - 1; i++)
|
||||
{
|
||||
// see if we found a directory
|
||||
string filename0 = _localFiles[i].Filename;
|
||||
string filename0 = _localFiles[i].Filename!;
|
||||
if (filename0.Substring(filename0.Length - 1, 1) != "/")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// see if the next file is in that directory
|
||||
string filename1 = _localFiles[i + 1].Filename;
|
||||
string filename1 = _localFiles[i + 1].Filename!;
|
||||
if (filename1.Length <= filename0.Length)
|
||||
{
|
||||
continue;
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace Compress.ZipFile
|
||||
if (localFilesCount > 0)
|
||||
{
|
||||
// check that filenames are in trrntzip order
|
||||
string lastFilename = _localFiles[localFilesCount - 1].Filename;
|
||||
string lastFilename = _localFiles[localFilesCount - 1].Filename!;
|
||||
if (CompressUtils.TrrntZipStringCompare(lastFilename, filename) > 0)
|
||||
validTrrntzip = ZipReturn.ZipTrrntzipIncorrectFileOrder;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user