fix bug 739 can not create file notepad newfile.txt
authorMagnus Olsen <magnus@greatlord.com>
Sun, 4 Sep 2005 11:47:50 +0000 (11:47 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Sun, 4 Sep 2005 11:47:50 +0000 (11:47 +0000)
at cmd prompt

svn path=/trunk/; revision=17634

reactos/subsys/system/notepad/dialog.c

index 4860135..aa4aae4 100644 (file)
@@ -216,7 +216,7 @@ void DoOpenFile(LPCWSTR szFileName)
        return;
 
     hFile = CreateFile(szFileName, GENERIC_READ, FILE_SHARE_READ, NULL,
-       OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
+       OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
     if(hFile == INVALID_HANDLE_VALUE)
     {
        ShowLastError();