Fixed crash when selecting no sound card.
Fixed number of heads when creating a new hard disc for drive C.
This commit is contained in:
parent
c4860ab55c
commit
8ad8d1e2f9
2 changed files with 3 additions and 1 deletions
|
|
@ -63,6 +63,8 @@ device_t *sound_card_getdevice(int card)
|
||||||
|
|
||||||
int sound_card_has_config(int card)
|
int sound_card_has_config(int card)
|
||||||
{
|
{
|
||||||
|
if (!sound_cards[card].device)
|
||||||
|
return 0;
|
||||||
return sound_cards[card].device->config ? 1 : 0;
|
return sound_cards[card].device->config ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -331,7 +331,7 @@ static BOOL CALLBACK hdconf_dlgproc(HWND hdlg, UINT message, WPARAM wParam, LPAR
|
||||||
h = GetDlgItem(hdlg, IDC_EDIT_C_SPT);
|
h = GetDlgItem(hdlg, IDC_EDIT_C_SPT);
|
||||||
sprintf(s, "%i", hd_new_spt);
|
sprintf(s, "%i", hd_new_spt);
|
||||||
SendMessage(h, WM_SETTEXT, 0, (LPARAM)s);
|
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);
|
sprintf(s, "%i", hd_new_hpc);
|
||||||
SendMessage(h, WM_SETTEXT, 0, (LPARAM)s);
|
SendMessage(h, WM_SETTEXT, 0, (LPARAM)s);
|
||||||
h = GetDlgItem(hdlg, IDC_EDIT_C_CYL);
|
h = GetDlgItem(hdlg, IDC_EDIT_C_CYL);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue