http://bugs.winehq.org/show_bug.cgi?id=19425
--- Comment #8 from Austin English austinenglish@gmail.com 2009-08-09 18:19:24 --- (In reply to comment #1)
Created an attachment (id=22781)
--> (http://bugs.winehq.org/attachment.cgi?id=22781) [details]
notepad: create missing file
attached a Q&D hack. only thing which should be done better is to handle returnvalue of DoSaveFile
I did some manual testing on windows.
If creating the file fails, notepad continues without creating a new file.
If the directory doesn't exist, you get a file not found error. E.g.,:
(In a read only directory):
notepad foo.txt
# Notepad runs, choose yes, no file created.
(In any directory):
notepad X:\foo.txt
# File not found