Commit c71dca83 authored by Torge Matthies's avatar Torge Matthies Committed by Alexandre Julliard

msvcr100: Use enum for _StructuredTaskCollection return value.

parent fc2fa4fb
...@@ -180,6 +180,12 @@ typedef struct ...@@ -180,6 +180,12 @@ typedef struct
void *event; void *event;
} _StructuredTaskCollection; } _StructuredTaskCollection;
typedef enum
{
TASK_COLLECTION_SUCCESS = 1,
TASK_COLLECTION_CANCELLED
} _TaskCollectionStatus;
typedef struct _UnrealizedChore typedef struct _UnrealizedChore
{ {
const vtable_ptr *vtable; const vtable_ptr *vtable;
...@@ -2161,7 +2167,7 @@ static void CALLBACK exception_ptr_rethrow_finally(BOOL normal, void *data) ...@@ -2161,7 +2167,7 @@ static void CALLBACK exception_ptr_rethrow_finally(BOOL normal, void *data)
/* ?_RunAndWait@_StructuredTaskCollection@details@Concurrency@@QAA?AW4_TaskCollectionStatus@23@PAV_UnrealizedChore@23@@Z */ /* ?_RunAndWait@_StructuredTaskCollection@details@Concurrency@@QAA?AW4_TaskCollectionStatus@23@PAV_UnrealizedChore@23@@Z */
/* ?_RunAndWait@_StructuredTaskCollection@details@Concurrency@@QAG?AW4_TaskCollectionStatus@23@PAV_UnrealizedChore@23@@Z */ /* ?_RunAndWait@_StructuredTaskCollection@details@Concurrency@@QAG?AW4_TaskCollectionStatus@23@PAV_UnrealizedChore@23@@Z */
/* ?_RunAndWait@_StructuredTaskCollection@details@Concurrency@@QEAA?AW4_TaskCollectionStatus@23@PEAV_UnrealizedChore@23@@Z */ /* ?_RunAndWait@_StructuredTaskCollection@details@Concurrency@@QEAA?AW4_TaskCollectionStatus@23@PEAV_UnrealizedChore@23@@Z */
/*_TaskCollectionStatus*/int __stdcall _StructuredTaskCollection__RunAndWait( _TaskCollectionStatus __stdcall _StructuredTaskCollection__RunAndWait(
_StructuredTaskCollection *this, _UnrealizedChore *chore) _StructuredTaskCollection *this, _UnrealizedChore *chore)
{ {
LONG expected, val; LONG expected, val;
...@@ -2202,7 +2208,7 @@ static void CALLBACK exception_ptr_rethrow_finally(BOOL normal, void *data) ...@@ -2202,7 +2208,7 @@ static void CALLBACK exception_ptr_rethrow_finally(BOOL normal, void *data)
} }
__FINALLY_CTX(exception_ptr_rethrow_finally, ep) __FINALLY_CTX(exception_ptr_rethrow_finally, ep)
} }
return 1; return TASK_COLLECTION_SUCCESS;
} }
/* ?_Cancel@_StructuredTaskCollection@details@Concurrency@@QAAXXZ */ /* ?_Cancel@_StructuredTaskCollection@details@Concurrency@@QAAXXZ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment