summaryrefslogtreecommitdiff
path: root/source/fud_memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/fud_memory.cpp')
-rw-r--r--source/fud_memory.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/fud_memory.cpp b/source/fud_memory.cpp
index c4a4aa8..56701a6 100644
--- a/source/fud_memory.cpp
+++ b/source/fud_memory.cpp
@@ -26,7 +26,7 @@ FudStatus copyMem(void* destination, size_t destination_size, const void* source
}
if (destination_size < count) {
- return FudStatus::InvalidInput;
+ return FudStatus::ArgumentInvalid;
}
auto* destPtr = static_cast<char*>(destination);
@@ -45,7 +45,7 @@ FudStatus compareMem(const void* lhs, size_t destination_size, const void* rhs,
}
if (destination_size < count) {
- return FudStatus::InvalidInput;
+ return FudStatus::ArgumentInvalid;
}
int localDifference = 0;
@@ -83,7 +83,7 @@ FudStatus setMemory(void* data, size_t dataSize, uint8_t pattern, size_t count)
if (count > dataSize)
{
- return FudStatus::InvalidInput;
+ return FudStatus::ArgumentInvalid;
}
for (size_t idx = 0; idx < count; ++idx)
@@ -104,12 +104,12 @@ FudStatus setMemory(
{
if (eltOffset >= collectionCount)
{
- return FudStatus::InvalidInput;
+ return FudStatus::ArgumentInvalid;
}
if (eltOffset + eltCount > collectionCount)
{
- return FudStatus::InvalidInput;
+ return FudStatus::ArgumentInvalid;
}
auto dataSize = collectionCount * eltSize;