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
c940a3e9
Commit
c940a3e9
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_TargetServer.
parent
938f073e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
Makefile.in
dlls/taskschd/Makefile.in
+1
-0
task.c
dlls/taskschd/task.c
+13
-2
scheduler.c
dlls/taskschd/tests/scheduler.c
+0
-2
No files found.
dlls/taskschd/Makefile.in
View file @
c940a3e9
MODULE
=
taskschd.dll
IMPORTS
=
oleaut32
C_SRCS
=
\
task.c
\
...
...
dlls/taskschd/task.c
View file @
c940a3e9
...
...
@@ -193,8 +193,19 @@ static HRESULT WINAPI TaskService_get_Connected(ITaskService *iface, VARIANT_BOO
static
HRESULT
WINAPI
TaskService_get_TargetServer
(
ITaskService
*
iface
,
BSTR
*
server
)
{
FIXME
(
"%p,%p: stub
\n
"
,
iface
,
server
);
return
E_NOTIMPL
;
TaskService
*
task_svc
=
impl_from_ITaskService
(
iface
);
TRACE
(
"%p,%p
\n
"
,
iface
,
server
);
if
(
!
server
)
return
E_POINTER
;
if
(
!
task_svc
->
connected
)
return
HRESULT_FROM_WIN32
(
ERROR_ONLY_IF_CONNECTED
);
*
server
=
SysAllocString
(
task_svc
->
comp_name
);
if
(
!*
server
)
return
E_OUTOFMEMORY
;
return
S_OK
;
}
static
HRESULT
WINAPI
TaskService_get_ConnectedUser
(
ITaskService
*
iface
,
BSTR
*
user
)
...
...
dlls/taskschd/tests/scheduler.c
View file @
c940a3e9
...
...
@@ -52,7 +52,6 @@ static void test_Connect(void)
ok
(
vbool
==
VARIANT_FALSE
,
"expected VARIANT_FALSE, got %d
\n
"
,
vbool
);
hr
=
ITaskService_get_TargetServer
(
service
,
&
bstr
);
todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_ONLY_IF_CONNECTED
),
"expected ERROR_ONLY_IF_CONNECTED, got %#x
\n
"
,
hr
);
/* Win7 doesn't support UNC \\ prefix, but according to a user
...
...
@@ -89,7 +88,6 @@ todo_wine
ok
(
vbool
==
VARIANT_TRUE
,
"expected VARIANT_TRUE, got %d
\n
"
,
vbool
);
hr
=
ITaskService_get_TargetServer
(
service
,
&
bstr
);
todo_wine
ok
(
hr
==
S_OK
,
"get_TargetServer error %#x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
...
...
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