New version of WM_USER_GET_BASE_POINTER

This commit is contained in:
Henrik Rydgård 2023-02-05 13:45:29 +01:00
parent 53f961acf5
commit 6f9d6c6c5f

View File

@ -781,10 +781,10 @@ namespace MainWindow
case WM_USER_GET_BASE_POINTER:
Reporting::NotifyDebugger();
switch (lParam) {
case 0:
return (u32)(u64)Memory::base;
case 1:
return (u32)((u64)Memory::base >> 32);
case 0: return (u32)(u64)Memory::base;
case 1: return (u32)((u64)Memory::base >> 32);
case 2: return (u32)(u64)(&Memory::base);
case 3: return (u32)((u64)(&Memory::base) >> 32);
default:
return 0;
}