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
179d1ed7
Commit
179d1ed7
authored
Dec 01, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Implement IDailyTrigger_get_StartBoundary.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
adad0705
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
task.c
dlls/taskschd/task.c
+9
-2
scheduler.c
dlls/taskschd/tests/scheduler.c
+17
-0
No files found.
dlls/taskschd/task.c
View file @
179d1ed7
...
...
@@ -181,8 +181,15 @@ static HRESULT WINAPI DailyTrigger_put_ExecutionTimeLimit(IDailyTrigger *iface,
static
HRESULT
WINAPI
DailyTrigger_get_StartBoundary
(
IDailyTrigger
*
iface
,
BSTR
*
start
)
{
DailyTrigger
*
This
=
impl_from_IDailyTrigger
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
start
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
start
);
if
(
!
start
)
return
E_POINTER
;
if
(
!
This
->
start_boundary
)
*
start
=
NULL
;
else
if
(
!
(
*
start
=
SysAllocString
(
This
->
start_boundary
)))
return
E_OUTOFMEMORY
;
return
S_OK
;
}
static
HRESULT
WINAPI
DailyTrigger_put_StartBoundary
(
IDailyTrigger
*
iface
,
BSTR
start
)
...
...
dlls/taskschd/tests/scheduler.c
View file @
179d1ed7
...
...
@@ -1253,12 +1253,29 @@ static void test_daily_trigger(ITrigger *trigger)
ok
(
hr
==
S_OK
,
"get_DaysInterval failed: %08x
\n
"
,
hr
);
ok
(
interval
==
2
,
"interval = %d
\n
"
,
interval
);
hr
=
IDailyTrigger_get_StartBoundary
(
daily_trigger
,
NULL
);
ok
(
hr
==
E_POINTER
,
"get_StartBoundary failed: %08x
\n
"
,
hr
);
start_boundary
=
(
BSTR
)
0xdeadbeef
;
hr
=
IDailyTrigger_get_StartBoundary
(
daily_trigger
,
&
start_boundary
);
ok
(
hr
==
S_OK
,
"get_StartBoundary failed: %08x
\n
"
,
hr
);
ok
(
start_boundary
==
NULL
,
"start_boundary not set
\n
"
);
for
(
i
=
0
;
i
<
sizeof
(
start_test
)
/
sizeof
(
start_test
[
0
]);
i
++
)
{
start_boundary
=
SysAllocString
(
start_test
[
i
].
str
);
hr
=
IDailyTrigger_put_StartBoundary
(
daily_trigger
,
start_boundary
);
ok
(
hr
==
start_test
[
i
].
hr
,
"%u: got %08x expected %08x
\n
"
,
i
,
hr
,
start_test
[
i
].
hr
);
SysFreeString
(
start_boundary
);
if
(
hr
==
S_OK
)
{
start_boundary
=
NULL
;
hr
=
IDailyTrigger_get_StartBoundary
(
daily_trigger
,
&
start_boundary
);
ok
(
hr
==
S_OK
,
"%u: got %08x
\n
"
,
i
,
hr
);
ok
(
start_boundary
!=
NULL
,
"start_boundary not set
\n
"
);
ok
(
!
lstrcmpW
(
start_boundary
,
start_test
[
i
].
str
),
"%u: got %s
\n
"
,
i
,
wine_dbgstr_w
(
start_boundary
));
SysFreeString
(
start_boundary
);
}
}
hr
=
IDailyTrigger_put_StartBoundary
(
daily_trigger
,
NULL
);
...
...
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