Commit a49f0720 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

schedsvc: Allow others to read the file.

parent d11a1838
...@@ -282,7 +282,7 @@ void add_job(const WCHAR *name) ...@@ -282,7 +282,7 @@ void add_job(const WCHAR *name)
try = 1; try = 1;
for (;;) 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) if (file == INVALID_HANDLE_VALUE)
{ {
TRACE("Failed to open %s, error %u\n", debugstr_w(name), GetLastError()); TRACE("Failed to open %s, error %u\n", debugstr_w(name), GetLastError());
......
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