Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4d44bc37
Commit
4d44bc37
authored
Aug 27, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schedsvc: In case it's an old Wine prefix create c:\windows\tasks automatically.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a471f648
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
svc_main.c
dlls/schedsvc/svc_main.c
+3
-3
No files found.
dlls/schedsvc/svc_main.c
View file @
4d44bc37
...
@@ -74,14 +74,14 @@ static DWORD WINAPI tasks_monitor_thread(void *arg)
...
@@ -74,14 +74,14 @@ static DWORD WINAPI tasks_monitor_thread(void *arg)
GetWindowsDirectoryW
(
path
,
MAX_PATH
);
GetWindowsDirectoryW
(
path
,
MAX_PATH
);
lstrcatW
(
path
,
tasksW
);
lstrcatW
(
path
,
tasksW
);
/* Just in case it's an old Wine prefix with missing c:\windows\tasks */
CreateDirectoryW
(
path
,
NULL
);
htasks
=
CreateFileW
(
path
,
FILE_LIST_DIRECTORY
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
|
FILE_SHARE_DELETE
,
htasks
=
CreateFileW
(
path
,
FILE_LIST_DIRECTORY
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
|
FILE_SHARE_DELETE
,
NULL
,
OPEN_EXISTING
,
FILE_FLAG_BACKUP_SEMANTICS
|
FILE_FLAG_OVERLAPPED
,
NULL
);
NULL
,
OPEN_EXISTING
,
FILE_FLAG_BACKUP_SEMANTICS
|
FILE_FLAG_OVERLAPPED
,
NULL
);
if
(
htasks
==
INVALID_HANDLE_VALUE
)
if
(
htasks
==
INVALID_HANDLE_VALUE
)
{
{
ERR
(
"Couldn't start monitoring %s for tasks, error %u
\n
"
,
debugstr_w
(
path
),
GetLastError
());
ERR
(
"Couldn't start monitoring %s for tasks, error %u
\n
"
,
debugstr_w
(
path
),
GetLastError
());
/* Probably this is an old prefix with disabled updates */
if
(
GetLastError
()
==
ERROR_PATH_NOT_FOUND
||
GetLastError
()
==
ERROR_FILE_NOT_FOUND
)
ERR
(
"Please create the directory manually
\n
"
);
return
-
1
;
return
-
1
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment