1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Fixed hot-swap mFindDbgModuleCache where addrs are not 64k-aligned

This commit is contained in:
Brian Fiete 2023-07-25 07:42:37 -07:00
parent 8666fbe584
commit e2f45167f9
3 changed files with 55 additions and 8 deletions

View file

@ -66,7 +66,8 @@ DbgMemoryFlags DbgModuleMemoryCache::Read(uintptr addr, uint8* data, int size)
if ((addr < mAddr) || (addr > mAddr + mSize))
{
gDebugger->ReadMemory(addr, size, data);
if (data != NULL)
gDebugger->ReadMemory(addr, size, data);
flags = gDebugger->GetMemoryFlags(addr);
BfLogDbg("Got memory flags %p = %d\n", addr, flags);
return flags;