diff --git a/PTM/main.cpp b/PTM/main.cpp index 550eb7a..1b2570e 100644 --- a/PTM/main.cpp +++ b/PTM/main.cpp @@ -41,13 +41,13 @@ int __cdecl main(int argc, char** argv) _read_phys = [&](void* addr, void* buffer, std::size_t size) -> bool { - return my_proc.read_phys(addr, buffer, size); + return my_proc.read_phys(buffer, addr, size); }; _write_phys = [&](void* addr, void* buffer, std::size_t size) -> bool { - return my_proc.write_phys(addr, buffer, size); + return my_proc.write_phys(buffer, addr, size); }; std::printf("[+] sleeping 30 seconds...\n");