[Debugger] Fix memory viewer paste crash

This commit is contained in:
shygoo 2021-05-25 23:20:22 -05:00 committed by zilmar
parent 69e78a7d3e
commit 7368802c00
1 changed files with 1 additions and 1 deletions

View File

@ -977,7 +977,7 @@ LRESULT CDebugMemoryView::OnHxPaste(LPNMHDR lpNMHDR)
if (length != 0) if (length != 0)
{ {
std::unique_ptr<char> data = std::make_unique<char>(length); std::unique_ptr<char[]> data = std::make_unique<char[]>(length);
CMemoryScanner::ParseHexString(data.get(), text); CMemoryScanner::ParseHexString(data.get(), text);
for (int i = 0; i < length; i++) for (int i = 0; i < length; i++)