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
a261c043
Commit
a261c043
authored
Sep 26, 2022
by
Torge Matthies
Committed by
Alexandre Julliard
Dec 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr120: Throw exception in ~_StructuredTaskCollection if _RunAndWait was not called.
parent
cef3dcbd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
concurrency.c
dlls/msvcrt/concurrency.c
+11
-0
cxx.h
dlls/msvcrt/cxx.h
+2
-0
No files found.
dlls/msvcrt/concurrency.c
View file @
a261c043
...
...
@@ -686,6 +686,9 @@ DEFINE_CXX_DATA1(invalid_multiple_scheduling, &cexception_cxx_type_info, cexcept
DEFINE_CXX_DATA1
(
invalid_scheduler_policy_key
,
&
cexception_cxx_type_info
,
cexception_dtor
)
DEFINE_CXX_DATA1
(
invalid_scheduler_policy_thread_specification
,
&
cexception_cxx_type_info
,
cexception_dtor
)
DEFINE_CXX_DATA1
(
invalid_scheduler_policy_value
,
&
cexception_cxx_type_info
,
cexception_dtor
)
#if _MSVCR_VER >= 120
DEFINE_CXX_DATA1
(
missing_wait
,
&
cexception_cxx_type_info
,
cexception_dtor
)
#endif
DEFINE_CXX_DATA1
(
scheduler_resource_allocation_error
,
&
cexception_cxx_type_info
,
cexception_dtor
)
__ASM_BLOCK_BEGIN
(
concurrency_exception_vtables
)
...
...
@@ -1930,6 +1933,11 @@ DEFINE_THISCALL_WRAPPER(_StructuredTaskCollection_dtor, 4)
void
__thiscall
_StructuredTaskCollection_dtor
(
_StructuredTaskCollection
*
this
)
{
FIXME
(
"(%p): stub!
\n
"
,
this
);
if
(
this
->
count
&&
!
__uncaught_exception
())
{
missing_wait
e
;
missing_wait_ctor_str
(
&
e
,
"Missing call to _RunAndWait"
);
_CxxThrowException
(
&
e
,
&
missing_wait_exception_type
);
}
}
#endif
/* _MSVCR_VER >= 120 */
...
...
@@ -3445,6 +3453,9 @@ void msvcrt_init_concurrency(void *base)
init_invalid_scheduler_policy_key_cxx
(
base
);
init_invalid_scheduler_policy_thread_specification_cxx
(
base
);
init_invalid_scheduler_policy_value_cxx
(
base
);
#if _MSVCR_VER >= 120
init_missing_wait_cxx
(
base
);
#endif
init_scheduler_resource_allocation_error_cxx
(
base
);
#endif
}
...
...
dlls/msvcrt/cxx.h
View file @
a261c043
...
...
@@ -321,3 +321,5 @@ void exception_ptr_from_record(exception_ptr*,EXCEPTION_RECORD*) DECLSPEC_HIDDEN
void
__cdecl
__ExceptionPtrCreate
(
exception_ptr
*
);
void
__cdecl
__ExceptionPtrDestroy
(
exception_ptr
*
);
void
__cdecl
__ExceptionPtrRethrow
(
const
exception_ptr
*
);
BOOL
__cdecl
__uncaught_exception
(
void
);
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