schedsvc: Allow others to read the file.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2018-04-24 16:13:16 +08:00 committed by Alexandre Julliard
parent d11a18383b
commit a49f072040
1 changed files with 1 additions and 1 deletions

View File

@ -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());