]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Manually configured address >= 0x80000000 was not supported.
authorToni Wilen <twilen@winuae.net>
Fri, 21 Dec 2018 13:56:02 +0000 (15:56 +0200)
committerToni Wilen <twilen@winuae.net>
Fri, 21 Dec 2018 13:56:02 +0000 (15:56 +0200)
od-win32/win32gui.cpp

index 126a8024c9c852a74d1db3d98418c2b26cfe5d15..9d61d901093e614f1ab5823fab1adadeade7dbba 100644 (file)
@@ -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;