hooksystem: Fix miscalculation in comment (#5442)

This commit is contained in:
Martin Sundhaug 2024-04-05 13:56:53 +02:00 committed by GitHub
parent baad44b4ca
commit 942172d2dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {