Merge pull request #527 from typpos/master
(#526) Fix: CopyLimit overflows at 4GB.
This commit is contained in:
commit
47d11ca783
|
@ -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;
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue