Dmitry Timoshkov : schedsvc: Allow others to read the file.
Alexandre Julliard
julliard at winehq.org
Tue Apr 24 18:46:08 CDT 2018
Module: wine
Branch: master
Commit: a49f07204047b3d742a9d2f6956506c669026fd2
URL: https://source.winehq.org/git/wine.git/?a=commit;h=a49f07204047b3d742a9d2f6956506c669026fd2
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Tue Apr 24 16:13:16 2018 +0800
schedsvc: Allow others to read the file.
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/schedsvc/atsvc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/schedsvc/atsvc.c b/dlls/schedsvc/atsvc.c
index e46c1e9..83e7dca 100644
--- a/dlls/schedsvc/atsvc.c
+++ b/dlls/schedsvc/atsvc.c
@@ -282,7 +282,7 @@ void add_job(const WCHAR *name)
try = 1;
for (;;)
{
- file = CreateFileW(name, GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, 0);
+ file = CreateFileW(name, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, 0);
if (file == INVALID_HANDLE_VALUE)
{
TRACE("Failed to open %s, error %u\n", debugstr_w(name), GetLastError());
More information about the wine-cvs
mailing list