Skip to content

Commit

Permalink
[Debugger] Fix memory dump
Browse files Browse the repository at this point in the history
  • Loading branch information
shygoo authored and project64 committed May 26, 2021
1 parent c3ccf08 commit 0a61cbb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 0a61cbb

Please sign in to comment.