View Single Post
Old 04 August 2016, 18:43   #18
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,561
Code:
	write_log(_T("x2\n"));

	int mem_size = 0;
	switch (workprefs.cpuboardmem1_size) {
	case 0x00000000: mem_size = 0; break;
	case 0x00100000: mem_size = 1; break;
	case 0x00200000: mem_size = 2; break;
	case 0x00400000: mem_size = 3; break;
	case 0x00800000: mem_size = 4; break;
	case 0x01000000: mem_size = 5; break;
	case 0x02000000: mem_size = 6; break;
	case 0x04000000: mem_size = 7; break;
	case 0x08000000: mem_size = 8; break;
	case 0x10000000: mem_size = 9; break;
	}
	SendDlgItemMessage (hDlg, IDC_CPUBOARDMEM, TBM_SETPOS, TRUE, mem_size);

	write_log(_T("x3\n"));

	SetDlgItemText (hDlg, IDC_CPUBOARDRAM, memsize_names[msi_cpuboard[mem_size]]);

	write_log(_T("x4\n"));
Normal looking SetDlgItemText. Arrays are correct, no overflows, IDC_CPUBOARDRAM is normal text item etc. I don't have any more ideas.

EDIT: about the bug report, there should not be any need to install anything, just running the exe standalone should work. There is no extra dependencies.

Last edited by Toni Wilen; 04 August 2016 at 18:55.
Toni Wilen is offline  
 
Page generated in 0.05133 seconds with 9 queries