Alexander Law : programs/notepad: Correct sharing mode for opening file in notepad.
Alexandre Julliard
julliard at winehq.org
Thu Apr 7 07:36:49 CDT 2011
Module: wine
Branch: stable
Commit: a6e083b9d7ecf302b5cc93cc7f8605a8be093c02
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a6e083b9d7ecf302b5cc93cc7f8605a8be093c02
Author: Alexander Law <exclusion at gmail.com>
Date: Fri Jan 28 08:34:23 2011 +0300
programs/notepad: Correct sharing mode for opening file in notepad.
(cherry picked from commit a8308dd017541e9dd2ceca3d07a9ba8a566d8b3d)
---
programs/notepad/dialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/notepad/dialog.c b/programs/notepad/dialog.c
index ff5df75..0c4b716 100644
--- a/programs/notepad/dialog.c
+++ b/programs/notepad/dialog.c
@@ -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)
{
More information about the wine-cvs
mailing list