# HG changeset patch # User TomW # Date 1404849814 -3600 # Node ID a6ce8addfffab0c9d8fb84bae074856c37b75ad2 # Parent 4081a8dbce5b8761a00634dde2496892ebf3c35f Fixed crash when selecting no sound card. Fixed number of heads when creating a new hard disc for drive C. diff -r 4081a8dbce5b -r a6ce8addfffa src/sound.c --- a/src/sound.c Tue Jul 08 20:35:39 2014 +0100 +++ b/src/sound.c Tue Jul 08 21:03:34 2014 +0100 @@ -63,6 +63,8 @@ int sound_card_has_config(int card) { + if (!sound_cards[card].device) + return 0; return sound_cards[card].device->config ? 1 : 0; } diff -r 4081a8dbce5b -r a6ce8addfffa src/win-hdconf.c --- a/src/win-hdconf.c Tue Jul 08 20:35:39 2014 +0100 +++ b/src/win-hdconf.c Tue Jul 08 21:03:34 2014 +0100 @@ -331,7 +331,7 @@ h = GetDlgItem(hdlg, IDC_EDIT_C_SPT); sprintf(s, "%i", hd_new_spt); SendMessage(h, WM_SETTEXT, 0, (LPARAM)s); - h = GetDlgItem(hdlg, IDC_EDIT_C_CYL); + h = GetDlgItem(hdlg, IDC_EDIT_C_HPC); sprintf(s, "%i", hd_new_hpc); SendMessage(h, WM_SETTEXT, 0, (LPARAM)s); h = GetDlgItem(hdlg, IDC_EDIT_C_CYL);