Fix open mode passed to CreateFile in DoSaveFile function. Patch by
Johannes Anderwald.
Modified: trunk/reactos/subsys/system/notepad/dialog.c
_____
Modified: trunk/reactos/subsys/system/notepad/dialog.c
--- trunk/reactos/subsys/system/notepad/dialog.c 2005-09-01
23:32:59 UTC (rev 17602)
+++ trunk/reactos/subsys/system/notepad/dialog.c 2005-09-02
11:29:40 UTC (rev 17603)
@@ -143,7 +143,7 @@
DWORD size;
hFile = CreateFile(Globals.szFileName, GENERIC_WRITE,
FILE_SHARE_WRITE,
- NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
+ NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL,
NULL);
if(hFile == INVALID_HANDLE_VALUE)
{
ShowLastError();
Show replies by date