Merge pull request #2049 from shygoo/fix-memdump

[Debugger] Fix memory dump crash
This commit is contained in:
zilmar 2021-05-26 09:23:49 +09:30 committed by GitHub
commit e7fe519199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ bool CDumpMemory::DumpMemory(LPCTSTR FileName, DumpFormat Format, DWORD StartPC,
}
uint32_t dumpLen = EndPC - StartPC;
std::unique_ptr<uint8_t> dumpBuf = std::make_unique<uint8_t>(dumpLen);
std::unique_ptr<uint8_t[]> dumpBuf = std::make_unique<uint8_t[]>(dumpLen);
uint32_t dumpIdx = 0;
for (uint32_t pc = StartPC; pc < EndPC; pc++, dumpIdx++)