fix crash in loading hex editor (openadvanced regression)

This commit is contained in:
zeromus 2015-11-18 21:17:34 -06:00
parent 4de1d244ce
commit bc2e8c773d
1 changed files with 2 additions and 2 deletions

View File

@ -367,8 +367,8 @@ namespace BizHawk.Client.EmuHawk
private static byte[] GetRomBytes()
{
var path = GlobalWin.MainForm.CurrentlyOpenRom;
if (path == null)
var path = GlobalWin.MainForm.CurrentlyOpenRomArgs.OpenAdvanced.SimplePath;
if (string.IsNullOrEmpty(path))
{
return new byte[] { 0xFF };
}