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
2f366935
Commit
2f366935
authored
Aug 04, 2008
by
Roy Shea
Committed by
Alexandre Julliard
Aug 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Implemented NewWorkItem.
parent
777c2f1d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
task_scheduler.c
dlls/mstask/task_scheduler.c
+11
-2
task_scheduler.c
dlls/mstask/tests/task_scheduler.c
+4
-4
No files found.
dlls/mstask/task_scheduler.c
View file @
2f366935
...
...
@@ -119,9 +119,18 @@ static HRESULT WINAPI MSTASK_ITaskScheduler_NewWorkItem(
REFIID
riid
,
IUnknown
**
ppunk
)
{
FIXME
(
"%p, %s, %s, %s, %p: stub
\n
"
,
iface
,
debugstr_w
(
pwszTaskName
),
HRESULT
hr
;
TRACE
(
"(%p, %s, %s, %s, %p)
\n
"
,
iface
,
debugstr_w
(
pwszTaskName
),
debugstr_guid
(
rclsid
)
,
debugstr_guid
(
riid
),
ppunk
);
return
E_NOTIMPL
;
if
(
!
IsEqualGUID
(
rclsid
,
&
CLSID_CTask
))
return
CLASS_E_CLASSNOTAVAILABLE
;
if
(
!
IsEqualGUID
(
riid
,
&
IID_ITask
))
return
E_NOINTERFACE
;
hr
=
TaskConstructor
(
pwszTaskName
,
(
LPVOID
*
)
ppunk
);
return
hr
;
}
static
HRESULT
WINAPI
MSTASK_ITaskScheduler_AddWorkItem
(
...
...
dlls/mstask/tests/task_scheduler.c
View file @
2f366935
...
...
@@ -49,25 +49,25 @@ static void test_NewWorkItem(void)
/* Test basic task creation */
hres
=
ITaskScheduler_NewWorkItem
(
test_task_scheduler
,
task_name
,
&
CLSID_CTask
,
&
IID_ITask
,
(
IUnknown
**
)
&
task
);
todo_wine
ok
(
hres
==
S_OK
,
"NewNetworkItem failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"NewNetworkItem failed: %08x
\n
"
,
hres
);
if
(
hres
==
S_OK
)
ITask_Release
(
task
);
/* Task creation attempt using invalid work item class ID */
hres
=
ITaskScheduler_NewWorkItem
(
test_task_scheduler
,
task_name
,
&
GUID_BAD
,
&
IID_ITask
,
(
IUnknown
**
)
&
task
);
todo_wine
ok
(
hres
==
CLASS_E_CLASSNOTAVAILABLE
,
ok
(
hres
==
CLASS_E_CLASSNOTAVAILABLE
,
"Expected CLASS_E_CLASSNOTAVAILABLE: %08x
\n
"
,
hres
);
/* Task creation attempt using invalid interface ID */
hres
=
ITaskScheduler_NewWorkItem
(
test_task_scheduler
,
task_name
,
&
CLSID_CTask
,
&
GUID_BAD
,
(
IUnknown
**
)
&
task
);
todo_wine
ok
(
hres
==
E_NOINTERFACE
,
"Expected E_NOINTERFACE: %08x
\n
"
,
hres
);
ok
(
hres
==
E_NOINTERFACE
,
"Expected E_NOINTERFACE: %08x
\n
"
,
hres
);
/* Task creation attempt using invalid work item class and interface ID */
hres
=
ITaskScheduler_NewWorkItem
(
test_task_scheduler
,
task_name
,
&
GUID_BAD
,
&
GUID_BAD
,
(
IUnknown
**
)
&
task
);
todo_wine
ok
(
hres
==
CLASS_E_CLASSNOTAVAILABLE
,
ok
(
hres
==
CLASS_E_CLASSNOTAVAILABLE
,
"Expected CLASS_E_CLASSNOTAVAILABLE: %08x
\n
"
,
hres
);
ITaskScheduler_Release
(
test_task_scheduler
);
...
...
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