Closed DomDom3333 closed 3 years ago
Many thanks for catching this! I entered an invalid file (C:\test.exe) into the open file dialog and the app crashed with the following exception in WinPlayer.cs line 41
System.IO.FileNotFoundException
HResult=0x80070002
Message=The system cannot find the file specified. (0x80070002)
Source=
This issue has now been solved as of PR #29
Steps to Recreate:
Ensure no Valid file has previously selected Open Application Press F1 to Open File Select Path (Or otherwise no valid File) Press Enter Crash
Possible Solutions:
Check if File is valid inside OpenFile(string path) in WinPlayer.cs Line 39 Check if LastFileOpened is empty/exists before telling it to open it at Tui.cs Line 214
Ideally both should probably be added.