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
999922f7
Commit
999922f7
authored
May 14, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: ITaskTrigger::GetTrigger() should fail on NULL input.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fa4c7074
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
task_trigger.c
dlls/mstask/task_trigger.c
+2
-0
task_trigger.c
dlls/mstask/tests/task_trigger.c
+3
-0
No files found.
dlls/mstask/task_trigger.c
View file @
999922f7
...
...
@@ -211,6 +211,8 @@ static HRESULT WINAPI MSTASK_ITaskTrigger_GetTrigger(
TRACE
(
"(%p, %p)
\n
"
,
iface
,
pTrigger
);
if
(
!
pTrigger
)
return
E_INVALIDARG
;
/* Native implementation doesn't verify equivalent cbTriggerSize fields */
/* Copy relevant fields of the structure */
...
...
dlls/mstask/tests/task_trigger.c
View file @
999922f7
...
...
@@ -139,6 +139,9 @@ static void test_SetTrigger_GetTrigger(void)
hres
=
ITaskTrigger_SetTrigger
(
test_trigger
,
NULL
);
ok
(
hres
==
E_INVALIDARG
,
"got %#x
\n
"
,
hres
);
hres
=
ITaskTrigger_GetTrigger
(
test_trigger
,
NULL
);
ok
(
hres
==
E_INVALIDARG
,
"got %#x
\n
"
,
hres
);
/* Setup a trigger with base values for this test run */
GetLocalTime
(
&
time
);
empty_trigger_state
.
wStartHour
=
time
.
wHour
;
...
...
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