From 6117b6bb1d4a09f441ac65ddf9e601286266d644 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 14 May 2017 18:17:34 +0200 Subject: [PATCH] Added missing braces in win.c's update_status_bar_panes(), should hopefully fix the hard disk icons bug when using XTIDE. --- src/win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win.c b/src/win.c index 2ac9fdd84..0f42ad819 100644 --- a/src/win.c +++ b/src/win.c @@ -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;