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
196a9774
Commit
196a9774
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_Enabled.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
64c08e68
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 @
196a9774
...
@@ -1165,8 +1165,13 @@ static HRESULT WINAPI TaskSettings_get_Enabled(ITaskSettings *iface, VARIANT_BOO
...
@@ -1165,8 +1165,13 @@ static HRESULT WINAPI TaskSettings_get_Enabled(ITaskSettings *iface, VARIANT_BOO
static
HRESULT
WINAPI
TaskSettings_put_Enabled
(
ITaskSettings
*
iface
,
VARIANT_BOOL
enabled
)
static
HRESULT
WINAPI
TaskSettings_put_Enabled
(
ITaskSettings
*
iface
,
VARIANT_BOOL
enabled
)
{
{
FIXME
(
"%p,%d: stub
\n
"
,
iface
,
enabled
);
TaskSettings
*
taskset
=
impl_from_ITaskSettings
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"%p,%d
\n
"
,
iface
,
enabled
);
taskset
->
enabled
=
enabled
?
TRUE
:
FALSE
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
TaskSettings_get_DeleteExpiredTaskAfter
(
ITaskSettings
*
iface
,
BSTR
*
delay
)
static
HRESULT
WINAPI
TaskSettings_get_DeleteExpiredTaskAfter
(
ITaskSettings
*
iface
,
BSTR
*
delay
)
...
...
dlls/taskschd/tests/scheduler.c
View file @
196a9774
...
@@ -1132,6 +1132,12 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
...
@@ -1132,6 +1132,12 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
hr
=
ITaskSettings_put_Enabled
(
set
,
test
->
enabled
);
hr
=
ITaskSettings_put_Enabled
(
set
,
test
->
enabled
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
if
(
!
test
->
delete_expired_task_after
[
0
])
hr
=
ITaskSettings_put_DeleteExpiredTaskAfter
(
set
,
NULL
);
else
hr
=
ITaskSettings_put_DeleteExpiredTaskAfter
(
set
,
test
->
delete_expired_task_after
);
todo_wine
todo_wine
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
/* FIXME: Remove once implemented */
/* FIXME: Remove once implemented */
...
@@ -1141,12 +1147,6 @@ todo_wine
...
@@ -1141,12 +1147,6 @@ todo_wine
return
;
return
;
}
}
if
(
!
test
->
delete_expired_task_after
[
0
])
hr
=
ITaskSettings_put_DeleteExpiredTaskAfter
(
set
,
NULL
);
else
hr
=
ITaskSettings_put_DeleteExpiredTaskAfter
(
set
,
test
->
delete_expired_task_after
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
hr
=
ITaskSettings_put_Priority
(
set
,
test
->
priority
);
hr
=
ITaskSettings_put_Priority
(
set
,
test
->
priority
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
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