Added missing braces in win.c's update_status_bar_panes(), should hopefully fix the hard disk icons bug when using XTIDE.

This commit is contained in:
OBattler
2017-05-14 18:17:34 +02:00
parent 0d0d479280
commit 6117b6bb1d

View File

@@ -956,14 +956,14 @@ void update_status_bar_panes(HWND hwnds)
sb_part_meanings[sb_parts] = 0x20;
sb_parts++;
}
if (c_ide_pio && (models[model].flags & MODEL_HAS_IDE) || !memcmp(hdd_controller_name, "xtide", 5))
if (c_ide_pio && ((models[model].flags & MODEL_HAS_IDE) || !memcmp(hdd_controller_name, "xtide", 5)))
{
edge += sb_icon_width;
iStatusWidths[sb_parts] = edge;
sb_part_meanings[sb_parts] = 0x21;
sb_parts++;
}
if (c_ide_dma && (models[model].flags & MODEL_HAS_IDE) || !memcmp(hdd_controller_name, "xtide", 5))
if (c_ide_dma && ((models[model].flags & MODEL_HAS_IDE) || !memcmp(hdd_controller_name, "xtide", 5)))
{
edge += sb_icon_width;
iStatusWidths[sb_parts] = edge;