Fix for CUE/BIN crash on bad filename, fix for crash-on-exit because of the bad sb_parts count (12 i/o sb_parts.)

This commit is contained in:
waltje
2017-06-13 13:44:51 -04:00
parent eda2a004fd
commit 7db0c897a5
3 changed files with 211 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
*
* The Emulator's Windows core.
*
* Version: @(#)win.c 1.0.2 2017/06/04
* Version: @(#)win.c 1.0.3 2017/06/12
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -693,7 +693,7 @@ int find_status_bar_part(int tag)
return -1;
}
for (i = 0; i < 12; i++)
for (i = 0; i < sb_parts; i++)
{
if (sb_part_meanings[i] == tag)
{