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
e654be2a
Commit
e654be2a
authored
Jan 28, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Add some invalid parameters checks to ITaskFolder::DeleteFolder.
parent
0e658d11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
folder.c
dlls/taskschd/folder.c
+2
-0
scheduler.c
dlls/taskschd/tests/scheduler.c
+10
-0
No files found.
dlls/taskschd/folder.c
View file @
e654be2a
...
...
@@ -270,6 +270,8 @@ static HRESULT WINAPI TaskFolder_DeleteFolder(ITaskFolder *iface, BSTR name, LON
TRACE
(
"%p,%s,%x
\n
"
,
iface
,
debugstr_w
(
name
),
flags
);
if
(
!
name
||
!*
name
)
return
E_ACCESSDENIED
;
if
(
flags
)
FIXME
(
"unsupported flags %x
\n
"
,
flags
);
...
...
dlls/taskschd/tests/scheduler.c
View file @
e654be2a
...
...
@@ -346,6 +346,16 @@ todo_wine
hr
=
ITaskFolder_DeleteFolder
(
folder
,
Wine
,
0
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
),
"expected ERROR_FILE_NOT_FOUND, got %#x
\n
"
,
hr
);
hr
=
ITaskFolder_DeleteFolder
(
folder
,
NULL
,
0
);
ok
(
hr
==
E_ACCESSDENIED
||
hr
==
E_INVALIDARG
/* Vista */
,
"expected E_ACCESSDENIED, got %#x
\n
"
,
hr
);
hr
=
ITaskFolder_DeleteFolder
(
folder
,
empty
,
0
);
ok
(
hr
==
E_ACCESSDENIED
||
hr
==
E_INVALIDARG
/* Vista */
,
"expected E_ACCESSDENIED, got %#x
\n
"
,
hr
);
hr
=
ITaskFolder_DeleteFolder
(
folder
,
slash
,
0
);
todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_INVALID_NAME
),
"expected ERROR_INVALID_NAME, got %#x
\n
"
,
hr
);
ITaskFolder_Release
(
folder
);
ITaskService_Release
(
service
);
}
...
...
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