Standardize

This commit is contained in:
Jasmine Iwanek
2022-01-19 16:01:16 -05:00
parent c9bed2efa7
commit 332c5c62dd

View File

@@ -698,7 +698,7 @@ NewFloppyDialogProcedure(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam)
uint8_t disk_size, rpm_mode; uint8_t disk_size, rpm_mode;
int ret; int ret;
FILE *f; FILE *f;
int zip_types, mo_types; int zip_types, mo_types, floppy_types;
wchar_t *twcs; wchar_t *twcs;
switch (message) { switch (message) {
@@ -716,7 +716,8 @@ NewFloppyDialogProcedure(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam)
for (i = 0; i < mo_types; i++) for (i = 0; i < mo_types; i++)
SendMessage(h, CB_ADDSTRING, 0, win_get_string(IDS_5902 + i)); SendMessage(h, CB_ADDSTRING, 0, win_get_string(IDS_5902 + i));
} else { } else {
for (i = 0; i < 12; i++) floppy_types = 12;
for (i = 0; i < floppy_types; i++)
SendMessage(h, CB_ADDSTRING, 0, win_get_string(IDS_5888 + i)); SendMessage(h, CB_ADDSTRING, 0, win_get_string(IDS_5888 + i));
} }
SendMessage(h, CB_SETCURSEL, 0, 0); SendMessage(h, CB_SETCURSEL, 0, 0);