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
f8483297
Commit
f8483297
authored
Nov 29, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Implement ITaskSettings_put_DeleteExpiredTaskAfter.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
53e4c36e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
task.c
dlls/taskschd/task.c
+9
-1
scheduler.c
dlls/taskschd/tests/scheduler.c
+3
-3
No files found.
dlls/taskschd/task.c
View file @
f8483297
...
...
@@ -1196,8 +1196,16 @@ static HRESULT WINAPI TaskSettings_get_DeleteExpiredTaskAfter(ITaskSettings *ifa
static
HRESULT
WINAPI
TaskSettings_put_DeleteExpiredTaskAfter
(
ITaskSettings
*
iface
,
BSTR
delay
)
{
TaskSettings
*
taskset
=
impl_from_ITaskSettings
(
iface
);
WCHAR
*
str
=
NULL
;
TRACE
(
"%p,%s
\n
"
,
iface
,
debugstr_w
(
delay
));
return
E_NOTIMPL
;
if
(
delay
&&
!
(
str
=
heap_strdupW
(
delay
)))
return
E_OUTOFMEMORY
;
heap_free
(
taskset
->
delete_expired_task_after
);
taskset
->
delete_expired_task_after
=
str
;
return
S_OK
;
}
static
HRESULT
WINAPI
TaskSettings_get_Priority
(
ITaskSettings
*
iface
,
INT
*
priority
)
...
...
dlls/taskschd/tests/scheduler.c
View file @
f8483297
...
...
@@ -1138,6 +1138,9 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
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
);
todo_wine
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
/* FIXME: Remove once implemented */
...
...
@@ -1147,9 +1150,6 @@ todo_wine
return
;
}
hr
=
ITaskSettings_put_Priority
(
set
,
test
->
priority
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
hr
=
ITaskSettings_put_Compatibility
(
set
,
test
->
compatibility
);
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