From 8bf27cf42fd83918c6a730ffddbc12a0204213dc Mon Sep 17 00:00:00 2001 From: aldelaro5 Date: Thu, 2 Mar 2017 20:07:24 -0500 Subject: Fix memory breakpoint when checking the middle of the data If the delimiters of a memory aren't exactly the same as an address, but their size includes the memory breakpoint delimiter, the break will not go through. This makes it so that you can specify a search for a memory breakpoint with a data size and will check if the data fits with that size on all memory breakpoints so the breaks go through. --- Source/Core/DolphinWX/Debugger/MemoryView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/DolphinWX/Debugger/MemoryView.cpp') diff --git a/Source/Core/DolphinWX/Debugger/MemoryView.cpp b/Source/Core/DolphinWX/Debugger/MemoryView.cpp index 5265058562..80c4efa5d7 100644 --- a/Source/Core/DolphinWX/Debugger/MemoryView.cpp +++ b/Source/Core/DolphinWX/Debugger/MemoryView.cpp @@ -418,7 +418,7 @@ void CMemoryView::OnPaint(wxPaintEvent& event) draw_text(StrToWxStr(desc), 2); // Show blue memory check dot - if (debugger->IsMemCheck(address)) + if (debugger->IsMemCheck(address, sizeof(u8))) { dc.SetPen(*wxTRANSPARENT_PEN); dc.SetBrush(mc_brush); -- cgit v1.2.3