8 Sep
2023
8 Sep
'23
8:11 a.m.
Piotr Caban (@piotr) commented about dlls/msvcp90/exception.c:
+ +/* ?_Throw_future_error(a)std@@YAXABVerror_code(a)1@@Z */ +/* ?_Throw_future_error(a)std@@YAXAEBVerror_code(a)1@@Z */ +void __cdecl DECLSPEC_NORETURN _Throw_future_error( const error_code *error_code ) +{ + static const char *names[4] = { + "broken promise", + "future already retrieved", + "promise already satisfied", + "no state", + }; + future_error e; + + TRACE("(%p)\n", error_code); + + MSVCP_logic_error_ctor(&e.base, EXCEPTION_NAME(names[error_code->code-1])); Please fix the function for `error_code->code` values outside of [1..4] range.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3767#note_44674