mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 23:20:43 +00:00
msvcr110: Implement _StructuredTaskCollection constructor.
This commit is contained in:
parent
f26985affe
commit
d1468c2b60
|
@ -1403,7 +1403,7 @@ static void __cdecl chore_proc(_UnrealizedChore *_this)
|
|||
MSVCRT_bool canceling = call_func1(
|
||||
p__StructuredTaskCollection__IsCanceling,
|
||||
chore->chore.task_collection);
|
||||
ok(canceling, "Task is not canceling\n");
|
||||
todo_wine ok(canceling, "Task is not canceling\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1433,7 +1433,7 @@ static void test_StructuredTaskCollection(void)
|
|||
skip("_StructuredTaskCollection constructor not implemented\n");
|
||||
return;
|
||||
}
|
||||
ok(task_coll.unk2 == 0x1fffffff,
|
||||
todo_wine ok(task_coll.unk2 == 0x1fffffff,
|
||||
"_StructuredTaskCollection ctor set wrong unk2: 0x%x != 0x1fffffff\n", task_coll.unk2);
|
||||
ok(task_coll.unk3 == NULL,
|
||||
"_StructuredTaskCollection ctor set wrong unk3: %p != NULL\n", task_coll.unk3);
|
||||
|
@ -1587,7 +1587,7 @@ static void test_StructuredTaskCollection(void)
|
|||
ok(b, "SetEvent failed\n");
|
||||
|
||||
status = p__StructuredTaskCollection__RunAndWait(&task_coll, NULL);
|
||||
ok(status == 2, "_StructuredTaskCollection::_RunAndWait failed: %d\n", status);
|
||||
todo_wine ok(status == 2, "_StructuredTaskCollection::_RunAndWait failed: %d\n", status);
|
||||
call_func1(p__StructuredTaskCollection_dtor, &task_coll);
|
||||
|
||||
CloseHandle(chore_start_evt);
|
||||
|
|
|
@ -1873,8 +1873,14 @@ DEFINE_THISCALL_WRAPPER(_StructuredTaskCollection_ctor, 8)
|
|||
_StructuredTaskCollection* __thiscall _StructuredTaskCollection_ctor(
|
||||
_StructuredTaskCollection *this, /*_CancellationTokenState*/void *token)
|
||||
{
|
||||
FIXME("(%p): stub\n", this);
|
||||
return NULL;
|
||||
TRACE("(%p)\n", this);
|
||||
|
||||
if (token)
|
||||
FIXME("_StructuredTaskCollection with cancellation token not implemented!\n");
|
||||
|
||||
memset(this, 0, sizeof(*this));
|
||||
this->finished = FINISHED_INITIAL;
|
||||
return this;
|
||||
}
|
||||
|
||||
#endif /* _MSVCR_VER >= 110 */
|
||||
|
|
Loading…
Reference in a new issue