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
ea248186
Commit
ea248186
authored
Apr 10, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Add invalid parameter check to IRegisteredTask::get_State and…
taskschd: Add invalid parameter check to IRegisteredTask::get_State and IRegisteredTask::get_Enabled.
parent
95955269
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
regtask.c
dlls/taskschd/regtask.c
+4
-0
scheduler.c
dlls/taskschd/tests/scheduler.c
+5
-0
No files found.
dlls/taskschd/regtask.c
View file @
ea248186
...
...
@@ -157,6 +157,8 @@ static HRESULT WINAPI regtask_get_State(IRegisteredTask *iface, TASK_STATE *stat
TRACE
(
"%p,%p
\n
"
,
iface
,
state
);
if
(
!
state
)
return
E_POINTER
;
return
SchRpcGetTaskInfo
(
regtask
->
path
,
SCH_FLAG_STATE
,
&
enabled
,
state
);
}
...
...
@@ -168,6 +170,8 @@ static HRESULT WINAPI regtask_get_Enabled(IRegisteredTask *iface, VARIANT_BOOL *
TRACE
(
"%p,%p
\n
"
,
iface
,
v_enabled
);
if
(
!
v_enabled
)
return
E_POINTER
;
hr
=
SchRpcGetTaskInfo
(
regtask
->
path
,
0
,
&
enabled
,
&
state
);
if
(
hr
==
S_OK
)
*
v_enabled
=
enabled
?
VARIANT_TRUE
:
VARIANT_FALSE
;
...
...
dlls/taskschd/tests/scheduler.c
View file @
ea248186
...
...
@@ -909,6 +909,11 @@ todo_wine
todo_wine
ok
(
vbool
==
VARIANT_TRUE
,
"expected VARIANT_TRUE, got %d
\n
"
,
vbool
);
hr
=
IRegisteredTask_get_State
(
task2
,
NULL
);
ok
(
hr
==
E_POINTER
,
"expected E_POINTER, got %#x
\n
"
,
hr
);
hr
=
IRegisteredTask_get_Enabled
(
task2
,
NULL
);
ok
(
hr
==
E_POINTER
,
"expected E_POINTER, got %#x
\n
"
,
hr
);
IRegisteredTask_Release
(
task2
);
hr
=
ITaskFolder_DeleteTask
(
folder
,
NULL
,
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