[UCRT] Make SEH blocks ReactOS PSEH compatible

This commit is contained in:
Timo Kreuzer 2024-10-12 00:05:27 +03:00
parent 7bb9f6bf28
commit e98e9000c7
59 changed files with 98 additions and 0 deletions

View file

@ -51,6 +51,7 @@ extern "C" wint_t __cdecl _getwch()
{
__acrt_unlock(__acrt_conio_lock);
}
__endtry
return result;
}
@ -67,6 +68,7 @@ extern "C" wint_t __cdecl _getwche()
{
__acrt_unlock(__acrt_conio_lock);
}
__endtry
return result;
}
@ -140,6 +142,7 @@ extern "C" wint_t __cdecl _getwch_nolock()
// Restore the previous console mode:
__dcrt_set_input_console_mode(old_console_mode);
}
__endtry
return result;
}
@ -185,6 +188,7 @@ extern "C" wint_t __cdecl _ungetwch(wint_t const c)
{
__acrt_unlock(__acrt_conio_lock);
}
__endtry
return result;
}