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
be8a21f1
Commit
be8a21f1
authored
Apr 20, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Implement better stub for ITask::GetMostRecentRunTime().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
23be14b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
task.c
dlls/mstask/task.c
+5
-5
task.c
dlls/mstask/tests/task.c
+14
-0
No files found.
dlls/mstask/task.c
View file @
be8a21f1
...
...
@@ -225,12 +225,12 @@ static HRESULT WINAPI MSTASK_ITask_EditWorkItem(
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MSTASK_ITask_GetMostRecentRunTime
(
ITask
*
iface
,
SYSTEMTIME
*
pstLastRun
)
static
HRESULT
WINAPI
MSTASK_ITask_GetMostRecentRunTime
(
ITask
*
iface
,
SYSTEMTIME
*
st
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
iface
,
pstLastRun
);
return
E_NOTIMPL
;
FIXME
(
"(%p, %p): stub
\n
"
,
iface
,
st
);
memset
(
st
,
0
,
sizeof
(
*
st
));
return
SCHED_S_TASK_HAS_NOT_RUN
;
}
static
HRESULT
WINAPI
MSTASK_ITask_GetStatus
(
ITask
*
iface
,
HRESULT
*
status
)
...
...
dlls/mstask/tests/task.c
View file @
be8a21f1
...
...
@@ -503,6 +503,7 @@ static void test_task_state(void)
HRESULT
hr
,
status
;
DWORD
flags
,
val
;
WORD
val1
,
val2
;
SYSTEMTIME
st
;
setup
=
setup_task
();
ok
(
setup
,
"Failed to setup test_task
\n
"
);
...
...
@@ -573,6 +574,19 @@ static void test_task_state(void)
ok
(
hr
==
SCHED_S_TASK_HAS_NOT_RUN
,
"got %#x
\n
"
,
hr
);
ok
(
val
==
0
,
"got %#x
\n
"
,
val
);
if
(
0
)
/* crashes under Windows */
hr
=
ITask_GetMostRecentRunTime
(
test_task
,
NULL
);
memset
(
&
st
,
0xff
,
sizeof
(
st
));
hr
=
ITask_GetMostRecentRunTime
(
test_task
,
&
st
);
ok
(
hr
==
SCHED_S_TASK_HAS_NOT_RUN
,
"got %#x
\n
"
,
hr
);
ok
(
st
.
wYear
==
0
,
"got %u
\n
"
,
st
.
wYear
);
ok
(
st
.
wMonth
==
0
,
"got %u
\n
"
,
st
.
wMonth
);
ok
(
st
.
wDay
==
0
,
"got %u
\n
"
,
st
.
wDay
);
ok
(
st
.
wHour
==
0
,
"got %u
\n
"
,
st
.
wHour
);
ok
(
st
.
wMinute
==
0
,
"got %u
\n
"
,
st
.
wMinute
);
ok
(
st
.
wSecond
==
0
,
"got %u
\n
"
,
st
.
wSecond
);
cleanup_task
();
}
...
...
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