diff options
Diffstat (limited to 'include/fud_c_file.hpp')
-rw-r--r-- | include/fud_c_file.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/fud_c_file.hpp b/include/fud_c_file.hpp index 4905643..b54b044 100644 --- a/include/fud_c_file.hpp +++ b/include/fud_c_file.hpp @@ -220,7 +220,7 @@ class CFile { } if (offset > LONG_MAX || SIZE_MAX - offset < length || destinationSize < length) { - result.status = FudStatus::InvalidInput; + result.status = FudStatus::ArgumentInvalid; return result; } @@ -232,7 +232,7 @@ class CFile { auto fileSize = fileSizeResult.getOkay(); if (offset + length > fileSize) { - result.status = FudStatus::InvalidInput; + result.status = FudStatus::ArgumentInvalid; return result; } @@ -306,7 +306,7 @@ class CFile { } if (offset > LONG_MAX || SIZE_MAX - offset < length || sourceSize < length) { - result.status = FudStatus::InvalidInput; + result.status = FudStatus::ArgumentInvalid; return result; } |