programs/notepad: Correct sharing mode for opening file in notepad.
This commit is contained in:
parent
81c4f2a25f
commit
a8308dd017
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue