[misc] introduce hImageOption and ComboBox_GetCurItemData() to simplify code

* Also add retry to ms-sys' write_sectors()
This commit is contained in:
Pete Batard 2020-07-17 21:51:15 +01:00
parent 09d2f2f0ab
commit 4617f91e3b
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
9 changed files with 60 additions and 60 deletions

View file

@ -414,7 +414,7 @@ BOOL ExtractFreeDOS(const char* path)
BOOL ExtractDOS(const char* path)
{
switch(ComboBox_GetItemData(hBootType, ComboBox_GetCurSel(hBootType))) {
switch(ComboBox_GetCurItemData(hBootType)) {
case BT_MSDOS:
return ExtractMSDOS(path);
case BT_FREEDOS: