From d22b35c240b8d5d4a9cbd69616af31233255eb70 Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 10 Feb 2014 01:01:36 +0000 Subject: [PATCH] Hex Editor - fix exception when user clicks cancel in the Save as Binary dialog --- BizHawk.Client.EmuHawk/tools/HexEditor/HexEditor.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/tools/HexEditor/HexEditor.cs b/BizHawk.Client.EmuHawk/tools/HexEditor/HexEditor.cs index a17c6d281e..9dacaeccc0 100644 --- a/BizHawk.Client.EmuHawk/tools/HexEditor/HexEditor.cs +++ b/BizHawk.Client.EmuHawk/tools/HexEditor/HexEditor.cs @@ -1172,7 +1172,11 @@ namespace BizHawk.Client.EmuHawk private void SaveAsBinaryMenuItem_Click(object sender, EventArgs e) { - SaveFileBinary(GetBinarySaveFileFromUser()); + var path = GetBinarySaveFileFromUser(); + if (!string.IsNullOrEmpty(path)) + { + SaveFileBinary(path); + } } private void SaveAsTextMenuItem_Click(object sender, EventArgs e)