Skip to content

Commit 06863c4

Browse files
authored
Update CCore.cpp
1 parent 9bbd607 commit 06863c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Client/core/CCore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ inline void PatchMemory(std::uintptr_t address, const T& value)
8181
{
8282
DWORD oldProtect;
8383
VirtualProtect(reinterpret_cast<void*>(address), sizeof(T), PAGE_EXECUTE_READWRITE, &oldProtect);
84-
std::memcpy(reinterpret_cast<void*>(address), value, sizeof(T));
84+
std::memcpy(reinterpret_cast<void*>(address), &value, sizeof(T));
8585
VirtualProtect(reinterpret_cast<void*>(address), sizeof(T), oldProtect, &oldProtect);
8686
}
8787

@@ -870,7 +870,7 @@ void CCore::ApplyHooks()
870870
{
871871
WriteDebugEvent("CCore::ApplyHooks");
872872

873-
PatchMemory(0x8747A9, "MTA San Andreas User Files");
873+
PatchMemory(0x8747A9, 'M');
874874

875875
// Create our hooks.
876876
m_pDirectInputHookManager->ApplyHook();

0 commit comments

Comments
 (0)