Skip to content

Commit

Permalink
Fix Patch Installer trying to write to nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
illusion0001 committed Jul 4, 2023
1 parent fc6fa34 commit 83a754d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/Patcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ void Patcher_Construct(Patcher *This)

void Patcher_Install_Patch(Patcher *This, uint64_t Address, const void* Data, size_t Length)
{
if (!Address || !Length)
{
klog("[Patcher] Install_Patch: No target (0x%lx) or length (%li) provided!\n", Address, Length);
return;
}

//Backup Params.
This->Address = Address;
This->Length = Length;
Expand Down

0 comments on commit 83a754d

Please sign in to comment.