Skip to content

Commit 0d3857a

Browse files
committed
fix: Changed name of function parameter
1 parent 5db80f8 commit 0d3857a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/utils/memory.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,11 @@ bool Memory::Patch::Execute()
282282
return ret;
283283
}
284284

285-
bool Memory::Patch::Execute(uintptr_t location, unsigned char* bytes, size_t size)
285+
bool Memory::Patch::Execute(uintptr_t location, unsigned char* bytes, const size_t size_)
286286
{
287287
if (this->isPatched) return true; // already executed
288288
this->location = location;
289-
this->size = size;
289+
this->size = size_;
290290
if (this->original)
291291
{
292292
delete[] this->original;
@@ -303,7 +303,7 @@ bool Memory::Patch::Execute(uintptr_t location, unsigned char* bytes, size_t siz
303303
this->patch = nullptr;
304304
}
305305
this->patch = new unsigned char[this->size];
306-
memcpy(this->patch, bytes, size);
306+
memcpy(this->patch, bytes, size_);
307307

308308
#ifdef _WIN32
309309
for (size_t i = 0; i < this->size; ++i)

src/utils/memory.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace Memory
5252
Patch() : location(0), original(nullptr), patch(nullptr), size(0), isPatched(false) {}
5353
~Patch();
5454
bool Execute();
55-
bool Execute(uintptr_t location, unsigned char* bytes, size_t size);
55+
bool Execute(uintptr_t location, unsigned char* bytes, size_t size_);
5656
template <size_t size>
5757
bool Execute(const uintptr_t location_, unsigned char (&bytes)[size])
5858
{

0 commit comments

Comments
 (0)