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
b3a79114
Commit
b3a79114
authored
Feb 05, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: ITaskService::GetFolder should fail if not connected to the server.
parent
2d9dfb18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
task.c
dlls/taskschd/task.c
+5
-0
scheduler.c
dlls/taskschd/tests/scheduler.c
+3
-0
No files found.
dlls/taskschd/task.c
View file @
b3a79114
...
...
@@ -113,10 +113,15 @@ static HRESULT WINAPI TaskService_Invoke(ITaskService *iface, DISPID dispid, REF
static
HRESULT
WINAPI
TaskService_GetFolder
(
ITaskService
*
iface
,
BSTR
path
,
ITaskFolder
**
folder
)
{
TaskService
*
task_svc
=
impl_from_ITaskService
(
iface
);
TRACE
(
"%p,%s,%p
\n
"
,
iface
,
debugstr_w
(
path
),
folder
);
if
(
!
folder
)
return
E_POINTER
;
if
(
!
task_svc
->
connected
)
return
HRESULT_FROM_WIN32
(
ERROR_ONLY_IF_CONNECTED
);
return
TaskFolder_create
(
path
,
NULL
,
folder
,
FALSE
);
}
...
...
dlls/taskschd/tests/scheduler.c
View file @
b3a79114
...
...
@@ -142,6 +142,9 @@ static void test_GetFolder(void)
return
;
}
hr
=
ITaskService_GetFolder
(
service
,
NULL
,
&
folder
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_ONLY_IF_CONNECTED
),
"expected ERROR_ONLY_IF_CONNECTED, got %#x
\n
"
,
hr
);
V_VT
(
&
v_null
)
=
VT_NULL
;
hr
=
ITaskService_Connect
(
service
,
v_null
,
v_null
,
v_null
,
v_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