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
7f734943
Commit
7f734943
authored
Dec 02, 2022
by
Sven Baars
Committed by
Alexandre Julliard
Dec 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Don't assume a ONCE trigger is on the current day.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=52994
parent
3285363d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
task.c
dlls/mstask/task.c
+3
-0
task_trigger.c
dlls/mstask/tests/task_trigger.c
+16
-0
No files found.
dlls/mstask/task.c
View file @
7f734943
...
@@ -516,6 +516,9 @@ static HRESULT WINAPI MSTASK_ITask_GetNextRunTime(ITask *iface, SYSTEMTIME *rt)
...
@@ -516,6 +516,9 @@ static HRESULT WINAPI MSTASK_ITask_GetNextRunTime(ITask *iface, SYSTEMTIME *rt)
case
TASK_TIME_TRIGGER_ONCE
:
case
TASK_TIME_TRIGGER_ONCE
:
st
=
current_st
;
st
=
current_st
;
st
.
wYear
=
This
->
trigger
[
i
].
wBeginYear
;
st
.
wMonth
=
This
->
trigger
[
i
].
wBeginMonth
;
st
.
wDay
=
This
->
trigger
[
i
].
wBeginDay
;
st
.
wHour
=
This
->
trigger
[
i
].
wStartHour
;
st
.
wHour
=
This
->
trigger
[
i
].
wStartHour
;
st
.
wMinute
=
This
->
trigger
[
i
].
wStartMinute
;
st
.
wMinute
=
This
->
trigger
[
i
].
wStartMinute
;
st
.
wSecond
=
0
;
st
.
wSecond
=
0
;
...
...
dlls/mstask/tests/task_trigger.c
View file @
7f734943
...
@@ -532,6 +532,22 @@ static void test_GetNextRunTime(void)
...
@@ -532,6 +532,22 @@ static void test_GetNextRunTime(void)
st
.
wDay
,
st
.
wMonth
,
st
.
wYear
,
st
.
wDayOfWeek
,
st
.
wDay
,
st
.
wMonth
,
st
.
wYear
,
st
.
wDayOfWeek
,
st
.
wHour
,
st
.
wMinute
,
st
.
wSecond
);
st
.
wHour
,
st
.
wMinute
,
st
.
wSecond
);
hr
=
ITaskTrigger_GetTrigger
(
trigger
,
&
data
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
data
.
rgFlags
&=
~
TASK_TRIGGER_FLAG_DISABLED
;
data
.
TriggerType
=
TASK_TIME_TRIGGER_ONCE
;
/* add 1 day to test triggers in the far future */
trigger_add_ms
(
&
data
,
24
*
60
*
60
*
1000
,
&
cmp
);
hr
=
ITaskTrigger_SetTrigger
(
trigger
,
&
data
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
memset
(
&
st
,
0xff
,
sizeof
(
st
));
hr
=
ITask_GetNextRunTime
(
task
,
&
st
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
!
memcmp
(
&
st
,
&
cmp
,
sizeof
(
st
)),
"got %u/%u/%u wday %u %u:%02u:%02u
\n
"
,
st
.
wDay
,
st
.
wMonth
,
st
.
wYear
,
st
.
wDayOfWeek
,
st
.
wHour
,
st
.
wMinute
,
st
.
wSecond
);
/* TASK_TIME_TRIGGER_DAILY */
/* TASK_TIME_TRIGGER_DAILY */
hr
=
ITaskTrigger_GetTrigger
(
trigger
,
&
data
);
hr
=
ITaskTrigger_GetTrigger
(
trigger
,
&
data
);
...
...
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