Merge pull request #2052 from shygoo/fix-memview-paste

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

View File

@ -977,7 +977,7 @@ LRESULT CDebugMemoryView::OnHxPaste(LPNMHDR lpNMHDR)
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);
for (int i = 0; i < length; i++)