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
189bfa96
Commit
189bfa96
authored
Jan 14, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Implement ITaskService::get_Connected.
parent
e2119246
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
task.c
dlls/taskschd/task.c
+11
-2
scheduler.c
dlls/taskschd/tests/scheduler.c
+0
-4
No files found.
dlls/taskschd/task.c
View file @
189bfa96
...
...
@@ -35,6 +35,7 @@ typedef struct
{
ITaskService
ITaskService_iface
;
LONG
ref
;
BOOL
connected
;
}
TaskService
;
static
inline
TaskService
*
impl_from_ITaskService
(
ITaskService
*
iface
)
...
...
@@ -135,8 +136,15 @@ static HRESULT WINAPI TaskService_Connect(ITaskService *iface, VARIANT server, V
static
HRESULT
WINAPI
TaskService_get_Connected
(
ITaskService
*
iface
,
VARIANT_BOOL
*
connected
)
{
FIXME
(
"%p,%p: stub
\n
"
,
iface
,
connected
);
return
E_NOTIMPL
;
TaskService
*
task_svc
=
impl_from_ITaskService
(
iface
);
TRACE
(
"%p,%p
\n
"
,
iface
,
connected
);
if
(
!
connected
)
return
E_POINTER
;
*
connected
=
task_svc
->
connected
?
VARIANT_TRUE
:
VARIANT_FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
TaskService_get_TargetServer
(
ITaskService
*
iface
,
BSTR
*
server
)
...
...
@@ -192,6 +200,7 @@ HRESULT TaskService_create(void **obj)
task_svc
->
ITaskService_iface
.
lpVtbl
=
&
TaskService_vtbl
;
task_svc
->
ref
=
1
;
task_svc
->
connected
=
FALSE
;
*
obj
=
&
task_svc
->
ITaskService_iface
;
TRACE
(
"created %p
\n
"
,
*
obj
);
...
...
dlls/taskschd/tests/scheduler.c
View file @
189bfa96
...
...
@@ -48,9 +48,7 @@ static void test_Connect(void)
vbool
=
0xdead
;
hr
=
ITaskService_get_Connected
(
service
,
&
vbool
);
todo_wine
ok
(
hr
==
S_OK
,
"get_Connected error %#x
\n
"
,
hr
);
todo_wine
ok
(
vbool
==
VARIANT_FALSE
,
"expected VARIANT_FALSE, got %d
\n
"
,
vbool
);
hr
=
ITaskService_get_TargetServer
(
service
,
&
bstr
);
...
...
@@ -81,7 +79,6 @@ todo_wine
vbool
=
0xdead
;
hr
=
ITaskService_get_Connected
(
service
,
&
vbool
);
todo_wine
ok
(
hr
==
S_OK
,
"get_Connected error %#x
\n
"
,
hr
);
todo_wine
ok
(
vbool
==
VARIANT_TRUE
,
"expected VARIANT_TRUE, got %d
\n
"
,
vbool
);
...
...
@@ -92,7 +89,6 @@ todo_wine
vbool
=
0xdead
;
hr
=
ITaskService_get_Connected
(
service
,
&
vbool
);
todo_wine
ok
(
hr
==
S_OK
,
"get_Connected error %#x
\n
"
,
hr
);
todo_wine
ok
(
vbool
==
VARIANT_TRUE
,
"expected VARIANT_TRUE, got %d
\n
"
,
vbool
);
...
...
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