programs/notepad: Correct sharing mode for opening file in notepad.

This commit is contained in:
Alexander Law 2011-01-28 08:34:23 +03:00 committed by Alexandre Julliard
parent 81c4f2a25f
commit a8308dd017
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ void DoOpenFile(LPCWSTR szFileName, ENCODING enc)
if (!DoCloseFile()) if (!DoCloseFile())
return; return;
hFile = CreateFileW(szFileName, GENERIC_READ, FILE_SHARE_READ, NULL, hFile = CreateFileW(szFileName, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if(hFile == INVALID_HANDLE_VALUE) if(hFile == INVALID_HANDLE_VALUE)
{ {