From 8249b28bea29e8ce17eac12776a60ec3f9e47176 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Thu, 17 Oct 2024 19:42:29 -0500 Subject: Rename InvalidInput to ArgumentInvalid. --- source/fud_memory.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/fud_memory.cpp') 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(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; -- cgit v1.2.3