From: Toni Wilen Date: Fri, 21 Dec 2018 13:56:02 +0000 (+0200) Subject: Manually configured address >= 0x80000000 was not supported. X-Git-Tag: 4200~96 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=302919351ca0eb9780d0d4d24bbc3d10d4404453;p=francis%2Fwinuae.git Manually configured address >= 0x80000000 was not supported. --- diff --git a/od-win32/win32gui.cpp b/od-win32/win32gui.cpp index 126a8024..9d61d901 100644 --- a/od-win32/win32gui.cpp +++ b/od-win32/win32gui.cpp @@ -11387,9 +11387,9 @@ static INT_PTR CALLBACK MemoryDlgProc (HWND hDlg, UINT msg, WPARAM wParam, LPARA if (fastram_select_ramboard) { TCHAR *endptr; GetDlgItemText(hDlg, IDC_RAM_ADDRESS, tmp, sizeof tmp / sizeof(TCHAR)); - fastram_select_ramboard->start_address = _tcstol(tmp, &endptr, 16); + fastram_select_ramboard->start_address = _tcstoul(tmp, &endptr, 16); GetDlgItemText(hDlg, IDC_RAM_ADDRESS2, tmp, sizeof tmp / sizeof(TCHAR)); - fastram_select_ramboard->end_address = _tcstol(tmp, &endptr, 16); + fastram_select_ramboard->end_address = _tcstoul(tmp, &endptr, 16); setfastram_selectmenu(hDlg, HIWORD(wParam) == EN_KILLFOCUS ? 0 : 3); } break;