File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ uint32_t checkIfPointerIsValid(const void *ptr)
402
402
return PTR_CACHED;
403
403
}
404
404
405
- // Unached memory
405
+ // Uncached memory
406
406
if ((ptrRaw >= 0xC0000000 ) && (ptrRaw < 0xC1800000 ))
407
407
{
408
408
return PTR_UNCACHED;
Original file line number Diff line number Diff line change @@ -523,10 +523,13 @@ uint32_t adjustWatchValueControls(int32_t slot)
523
523
{
524
524
// Modifying the address
525
525
// Make sure the address is valid
526
- uint32_t tempMenuSecondaryValueUnsigned = MenuVar.MenuSecondaryValueUnsigned ;
527
- if (checkIfPointerIsValid (reinterpret_cast < void *>( tempMenuSecondaryValueUnsigned) ))
526
+ void * tempMenuSecondaryValueUnsigned = reinterpret_cast < void *>( MenuVar.MenuSecondaryValueUnsigned ) ;
527
+ if (checkIfPointerIsValid (tempMenuSecondaryValueUnsigned))
528
528
{
529
- MemoryWatch[slot].Address = tempMenuSecondaryValueUnsigned;
529
+ // Make sure the address is valid for the selected variable type
530
+ tempMenuSecondaryValueUnsigned = fixBaseAddress (slot, tempMenuSecondaryValueUnsigned);
531
+
532
+ MemoryWatch[slot].Address = reinterpret_cast <uint32_t >(tempMenuSecondaryValueUnsigned);
530
533
531
534
MenuVar.MenuSelectionStates = 0 ;
532
535
You can’t perform that action at this time.
0 commit comments