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
c8b9aa00
Commit
c8b9aa00
authored
Apr 16, 2019
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Apr 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd/tests: Avoid a crash in a test after E_ACCESSDENIED.
Signed-off-by:
Detlef Riekenberg
<
wine.dev@web.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bc1b56ad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
scheduler.c
dlls/taskschd/tests/scheduler.c
+6
-0
No files found.
dlls/taskschd/tests/scheduler.c
View file @
c8b9aa00
...
...
@@ -946,6 +946,11 @@ todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
)
||
hr
==
S_OK
/* win7 */
,
"expected ERROR_FILE_NOT_FOUND, got %#x
\n
"
,
hr
);
hr
=
ITaskFolder_RegisterTask
(
root
,
NULL
,
xmlW
,
TASK_CREATE
,
v_null
,
v_null
,
TASK_LOGON_NONE
,
v_null
,
&
task1
);
if
(
hr
==
E_ACCESSDENIED
)
{
skip
(
"Access denied
\n
"
);
goto
no_access
;
}
ok
(
hr
==
S_OK
,
"RegisterTask error %#x
\n
"
,
hr
);
hr
=
IRegisteredTask_get_Name
(
task1
,
&
bstr
);
...
...
@@ -962,6 +967,7 @@ todo_wine
hr
=
ITaskFolder_RegisterTask
(
folder
,
NULL
,
xmlW
,
TASK_CREATE
,
v_null
,
v_null
,
TASK_LOGON_NONE
,
v_null
,
&
task1
);
ok
(
hr
==
E_INVALIDARG
,
"expected E_INVALIDARG, got %#x
\n
"
,
hr
);
no_access:
ITaskFolder_Release
(
folder
);
hr
=
ITaskFolder_DeleteFolder
(
root
,
Wine
,
0
);
...
...
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