From 302919351ca0eb9780d0d4d24bbc3d10d4404453 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 21 Dec 2018 15:56:02 +0200 Subject: [PATCH] Manually configured address >= 0x80000000 was not supported. --- od-win32/win32gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.3