Commit a8308dd0 authored by Alexander Law's avatar Alexander Law Committed by Alexandre Julliard

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

parent 81c4f2a2
......@@ -356,7 +356,7 @@ void DoOpenFile(LPCWSTR szFileName, ENCODING enc)
if (!DoCloseFile())
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);
if(hFile == INVALID_HANDLE_VALUE)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment