Test: Fix crash when loading invalid file

This commit is contained in:
Vicki Pfau 2017-04-18 03:36:48 -07:00
parent de76a076e8
commit fbb8b2431b
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ Bugfixes:
- GBA BIOS: Fix ArcTan2 sign in HLE BIOS (fixes mgba.io/i/689) - GBA BIOS: Fix ArcTan2 sign in HLE BIOS (fixes mgba.io/i/689)
- GBA Video: Don't update background scanline params in mode 0 (fixes mgba.io/i/377) - GBA Video: Don't update background scanline params in mode 0 (fixes mgba.io/i/377)
- Core: Fix crash with rewind if savestates shrink - Core: Fix crash with rewind if savestates shrink
- Test: Fix crash when loading invalid file
Misc: Misc:
- Qt: Improved HiDPI support - Qt: Improved HiDPI support
- Feature: Support ImageMagick 7 - Feature: Support ImageMagick 7

View File

@ -66,6 +66,9 @@ int main(int argc, char** argv) {
return 0; return 0;
} }
struct mCore* core = mCoreFind(args.fname); struct mCore* core = mCoreFind(args.fname);
if (!core) {
return 1;
}
core->init(core); core->init(core);
mCoreInitConfig(core, "fuzz"); mCoreInitConfig(core, "fuzz");
applyArguments(&args, NULL, &core->config); applyArguments(&args, NULL, &core->config);