Skip to content

Commit

Permalink
Fix CI / Win64-Analysis checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Vancleeff committed May 31, 2024
1 parent 0065969 commit 9a76604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/win32/bindings/MemoryViewerControlBinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ bool MemoryViewerControlBinding::OnPaste(bool bShiftHeld)
auto nAddress = m_pViewModel.GetAddress();
const auto& pEmulatorContext = ra::services::ServiceLocator::Get<ra::data::context::EmulatorContext>();
std::wstring sClipboardText = ra::services::ServiceLocator::Get<ra::services::IClipboard>().GetText();
const auto nBytesForSize = ra::data::MemSizeBytes(m_pViewModel.GetSize());
const size_t nBytesForSize = ra::data::MemSizeBytes(m_pViewModel.GetSize());
std::wstring sError;

if (sClipboardText.empty())
Expand All @@ -356,7 +356,7 @@ bool MemoryViewerControlBinding::OnPaste(bool bShiftHeld)
}

pEmulatorContext.WriteMemory(nAddress, m_pViewModel.GetSize(), nValue);
nAddress += nBytesForSize;
nAddress += gsl::narrow_cast<ra::ByteAddress>(nBytesForSize);

// Single mode writes only the first value else multi mode (shift) writes every values
if (!bShiftHeld)
Expand Down

0 comments on commit 9a76604

Please sign in to comment.