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
bad78747
Commit
bad78747
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: Implement ITask::SetFlags().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0ec4e9d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
4 deletions
+45
-4
task.c
dlls/mstask/task.c
+7
-4
task.c
dlls/mstask/tests/task.c
+38
-0
No files found.
dlls/mstask/task.c
View file @
bad78747
...
...
@@ -491,11 +491,14 @@ static HRESULT WINAPI MSTASK_ITask_GetErrorRetryInterval(ITask *iface, WORD *int
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MSTASK_ITask_SetFlags
(
ITask
*
iface
,
DWORD
dwFlags
)
static
HRESULT
WINAPI
MSTASK_ITask_SetFlags
(
ITask
*
iface
,
DWORD
flags
)
{
FIXME
(
"(%p, 0x%08x): stub
\n
"
,
iface
,
dwFlags
);
TaskImpl
*
This
=
impl_from_ITask
(
iface
);
TRACE
(
"(%p, 0x%08x)
\n
"
,
iface
,
flags
);
This
->
flags
&=
0xffff8000
;
This
->
flags
|=
flags
&
0x7fff
;
This
->
is_dirty
=
TRUE
;
return
S_OK
;
}
...
...
dlls/mstask/tests/task.c
View file @
bad78747
...
...
@@ -683,6 +683,43 @@ static void test_Run(void)
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
}
static
void
test_SetFlags
(
void
)
{
HRESULT
hr
;
ITask
*
task
;
DWORD
flags
;
hr
=
ITaskScheduler_NewWorkItem
(
scheduler
,
task_name
,
&
CLSID_CTask
,
&
IID_ITask
,
(
IUnknown
**
)
&
task
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
hr
=
ITask_SetFlags
(
task
,
0
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
flags
=
0xdeadbeef
;
hr
=
ITask_GetFlags
(
task
,
&
flags
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
ok
(
flags
==
0
,
"got %#x
\n
"
,
flags
);
hr
=
ITask_SetFlags
(
task
,
0xffffffff
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
flags
=
0xdeadbeef
;
hr
=
ITask_GetFlags
(
task
,
&
flags
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
ok
(
flags
==
0x7fff
,
"got %#x
\n
"
,
flags
);
hr
=
ITask_SetFlags
(
task
,
0x9234
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
flags
=
0xdeadbeef
;
hr
=
ITask_GetFlags
(
task
,
&
flags
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
ok
(
flags
==
0x1234
,
"got %#x
\n
"
,
flags
);
ITask_Release
(
task
);
}
START_TEST
(
task
)
{
HRESULT
hr
;
...
...
@@ -700,6 +737,7 @@ START_TEST(task)
test_SetAccountInformation_GetAccountInformation
();
test_task_state
();
test_Run
();
test_SetFlags
();
ITaskScheduler_Release
(
scheduler
);
CoUninitialize
();
...
...
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