(#526) Fix: CopyLimit overflows at 4GB.

This commit is contained in:
typpos 2021-02-04 18:39:54 +11:00
parent 40de6e39c2
commit e2e021adc0
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ found_match:
// if tere is no configuration for this file type/path 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;
//