Merge pull request #527 from typpos/master

(#526) Fix: CopyLimit overflows at 4GB.
This commit is contained in:
DavidXanatos 2021-02-04 21:12:04 +01:00 committed by GitHub
commit 47d11ca783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -125,10 +125,10 @@ found_match:
return mode;
//
// if tere is no configuration for this file type/path decide based on the file size
// if there is no configuration for this file type/path, then decide based on the file size
//
if (File_CopyLimitKb == -1 || file_size < (File_CopyLimitKb * 1024))
if (File_CopyLimitKb == -1 || file_size < ((ULONGLONG)File_CopyLimitKb * 1024))
return FILE_COPY_CONTENT;
//