diff --git a/BurnOutSharp/EVORE.cs b/BurnOutSharp/EVORE.cs index 601e493d..6e2b93bc 100644 --- a/BurnOutSharp/EVORE.cs +++ b/BurnOutSharp/EVORE.cs @@ -67,13 +67,19 @@ namespace BurnOutSharp } catch { } - Directory.CreateDirectory(Path.GetDirectoryName(tempPath)); - using (BinaryWriter bw = new BinaryWriter(File.OpenWrite(tempPath))) + try { - bw.Write(fileContent); - } + Directory.CreateDirectory(Path.GetDirectoryName(tempPath)); + using (BinaryWriter bw = new BinaryWriter(File.OpenWrite(tempPath))) + { + bw.Write(fileContent); + } - return Path.GetFullPath(tempPath); + return Path.GetFullPath(tempPath); + } + catch { } + + return null; } private static bool IsEXE(byte[] fileContent)