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
f7018111
Commit
f7018111
authored
May 16, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Actually run a test and fix the expected behaviour.
parent
b69811f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
task_trigger.c
dlls/mstask/task_trigger.c
+0
-2
task_trigger.c
dlls/mstask/tests/task_trigger.c
+2
-1
No files found.
dlls/mstask/task_trigger.c
View file @
f7018111
...
@@ -138,8 +138,6 @@ static HRESULT WINAPI MSTASK_ITaskTrigger_SetTrigger(
...
@@ -138,8 +138,6 @@ static HRESULT WINAPI MSTASK_ITaskTrigger_SetTrigger(
if
(
pTrigger
->
MinutesDuration
<=
pTrigger
->
MinutesInterval
&&
if
(
pTrigger
->
MinutesDuration
<=
pTrigger
->
MinutesInterval
&&
pTrigger
->
MinutesInterval
>
0
)
pTrigger
->
MinutesInterval
>
0
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
if
(
pTrigger
->
MinutesDuration
>
0
&&
pTrigger
->
MinutesInterval
==
0
)
return
E_INVALIDARG
;
tmp_trigger_cond
.
MinutesDuration
=
pTrigger
->
MinutesDuration
;
tmp_trigger_cond
.
MinutesDuration
=
pTrigger
->
MinutesDuration
;
tmp_trigger_cond
.
MinutesInterval
=
pTrigger
->
MinutesInterval
;
tmp_trigger_cond
.
MinutesInterval
=
pTrigger
->
MinutesInterval
;
...
...
dlls/mstask/tests/task_trigger.c
View file @
f7018111
...
@@ -303,7 +303,8 @@ static void test_SetTrigger_GetTrigger(void)
...
@@ -303,7 +303,8 @@ static void test_SetTrigger_GetTrigger(void)
ok
(
hres
==
E_INVALIDARG
,
"Expected E_INVALIDARG: 0x%08x
\n
"
,
hres
);
ok
(
hres
==
E_INVALIDARG
,
"Expected E_INVALIDARG: 0x%08x
\n
"
,
hres
);
normal_trigger_state
.
MinutesDuration
=
5
;
normal_trigger_state
.
MinutesDuration
=
5
;
normal_trigger_state
.
MinutesInterval
=
0
;
normal_trigger_state
.
MinutesInterval
=
0
;
ok
(
hres
==
E_INVALIDARG
,
"Expected E_INVALIDARG: 0x%08x
\n
"
,
hres
);
hres
=
ITaskTrigger_SetTrigger
(
test_trigger
,
&
normal_trigger_state
);
ok
(
hres
==
S_OK
,
"Failed to set trigger: 0x%08x
\n
"
,
hres
);
normal_trigger_state
.
MinutesDuration
=
0
;
normal_trigger_state
.
MinutesDuration
=
0
;
normal_trigger_state
.
MinutesInterval
=
0
;
normal_trigger_state
.
MinutesInterval
=
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