From 942172d2dc9194b95d637283ec3338c06c9c6597 Mon Sep 17 00:00:00 2001 From: Martin Sundhaug Date: Fri, 5 Apr 2024 13:56:53 +0200 Subject: [PATCH] hooksystem: Fix miscalculation in comment (#5442) --- src/plugins/HookSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/HookSystem.cpp b/src/plugins/HookSystem.cpp index 3ac75c04..8d47470b 100644 --- a/src/plugins/HookSystem.cpp +++ b/src/plugins/HookSystem.cpp @@ -336,7 +336,7 @@ static uintptr_t seekNewPageAddr() { uint64_t CHookSystem::getAddressForTrampo() { // yes, technically this creates a memory leak of 64B every hook creation. But I don't care. // tracking all the users of the memory would be painful. - // Nobody will hook 100k times, and even if, that's only 640kB. Nothing. + // Nobody will hook 100k times, and even if, that's only 6.4 MB. Nothing. SAllocatedPage* page = nullptr; for (auto& p : pages) {