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
3c2d8dc3
Commit
3c2d8dc3
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_Enabled.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
929272f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
task.c
dlls/taskschd/task.c
+8
-3
scheduler.c
dlls/taskschd/tests/scheduler.c
+17
-0
No files found.
dlls/taskschd/task.c
View file @
3c2d8dc3
...
...
@@ -224,8 +224,13 @@ static HRESULT WINAPI DailyTrigger_put_EndBoundary(IDailyTrigger *iface, BSTR en
static
HRESULT
WINAPI
DailyTrigger_get_Enabled
(
IDailyTrigger
*
iface
,
VARIANT_BOOL
*
enabled
)
{
DailyTrigger
*
This
=
impl_from_IDailyTrigger
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
enabled
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
enabled
);
if
(
!
enabled
)
return
E_POINTER
;
*
enabled
=
This
->
enabled
?
VARIANT_TRUE
:
VARIANT_FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
DailyTrigger_put_Enabled
(
IDailyTrigger
*
iface
,
VARIANT_BOOL
enabled
)
...
...
@@ -314,7 +319,7 @@ static HRESULT DailyTrigger_create(ITrigger **trigger)
daily_trigger
->
ref
=
1
;
daily_trigger
->
interval
=
1
;
daily_trigger
->
start_boundary
=
NULL
;
daily_trigger
->
enabled
=
FALS
E
;
daily_trigger
->
enabled
=
TRU
E
;
*
trigger
=
(
ITrigger
*
)
&
daily_trigger
->
IDailyTrigger_iface
;
return
S_OK
;
...
...
dlls/taskschd/tests/scheduler.c
View file @
3c2d8dc3
...
...
@@ -1223,6 +1223,7 @@ static void test_daily_trigger(ITrigger *trigger)
};
IDailyTrigger
*
daily_trigger
;
BSTR
start_boundary
;
VARIANT_BOOL
enabled
;
short
interval
;
HRESULT
hr
;
ULONG
i
;
...
...
@@ -1281,6 +1282,22 @@ static void test_daily_trigger(ITrigger *trigger)
hr
=
IDailyTrigger_put_StartBoundary
(
daily_trigger
,
NULL
);
ok
(
hr
==
S_OK
,
"put_StartBoundary failed: %08x
\n
"
,
hr
);
hr
=
IDailyTrigger_get_Enabled
(
daily_trigger
,
NULL
);
ok
(
hr
==
E_POINTER
,
"get_Enabled failed: %08x
\n
"
,
hr
);
enabled
=
VARIANT_FALSE
;
hr
=
IDailyTrigger_get_Enabled
(
daily_trigger
,
&
enabled
);
ok
(
hr
==
S_OK
,
"get_Enabled failed: %08x
\n
"
,
hr
);
ok
(
enabled
==
VARIANT_TRUE
,
"got %d
\n
"
,
enabled
);
hr
=
IDailyTrigger_put_Enabled
(
daily_trigger
,
VARIANT_FALSE
);
ok
(
hr
==
S_OK
,
"put_Enabled failed: %08x
\n
"
,
hr
);
enabled
=
VARIANT_TRUE
;
hr
=
IDailyTrigger_get_Enabled
(
daily_trigger
,
&
enabled
);
ok
(
hr
==
S_OK
,
"get_Enabled failed: %08x
\n
"
,
hr
);
ok
(
enabled
==
VARIANT_FALSE
,
"got %d
\n
"
,
enabled
);
IDailyTrigger_Release
(
daily_trigger
);
}
...
...
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