Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ee12d7c9
Commit
ee12d7c9
authored
Nov 28, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Implement ITaskSettings_put_RunOnlyIfNetworkAvailable.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
62dd24af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
task.c
dlls/taskschd/task.c
+7
-2
scheduler.c
dlls/taskschd/tests/scheduler.c
+6
-6
No files found.
dlls/taskschd/task.c
View file @
ee12d7c9
...
...
@@ -1107,8 +1107,13 @@ static HRESULT WINAPI TaskSettings_get_RunOnlyIfNetworkAvailable(ITaskSettings *
static
HRESULT
WINAPI
TaskSettings_put_RunOnlyIfNetworkAvailable
(
ITaskSettings
*
iface
,
VARIANT_BOOL
run
)
{
FIXME
(
"%p,%d: stub
\n
"
,
iface
,
run
);
return
E_NOTIMPL
;
TaskSettings
*
taskset
=
impl_from_ITaskSettings
(
iface
);
TRACE
(
"%p,%d
\n
"
,
iface
,
run
);
taskset
->
run_only_if_network_available
=
run
?
TRUE
:
FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
TaskSettings_get_ExecutionTimeLimit
(
ITaskSettings
*
iface
,
BSTR
*
limit
)
...
...
dlls/taskschd/tests/scheduler.c
View file @
ee12d7c9
...
...
@@ -1123,6 +1123,12 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
hr
=
ITaskSettings_put_RunOnlyIfNetworkAvailable
(
set
,
test
->
run_only_if_network_available
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
if
(
!
test
->
execution_time_limit
[
0
])
hr
=
ITaskSettings_put_ExecutionTimeLimit
(
set
,
NULL
);
else
hr
=
ITaskSettings_put_ExecutionTimeLimit
(
set
,
test
->
execution_time_limit
);
todo_wine
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
/* FIXME: Remove once implemented */
...
...
@@ -1132,12 +1138,6 @@ todo_wine
return
;
}
if
(
!
test
->
execution_time_limit
[
0
])
hr
=
ITaskSettings_put_ExecutionTimeLimit
(
set
,
NULL
);
else
hr
=
ITaskSettings_put_ExecutionTimeLimit
(
set
,
test
->
execution_time_limit
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
hr
=
ITaskSettings_put_Enabled
(
set
,
test
->
enabled
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
...
...
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