Merged PR 4270393: [Git2Git] Merged PR 4264676: Guards the exceptions from PaintFrameForEngine to head off the Watsons
[Git2Git] Merged PR 4264676: Guards the exceptions from PaintFrameForEngine to head off the Watsons Guards the exceptions from PaintFrameForEngine to head off the Watsons. This will just enable it to retry again later. There's no real reason for it to crash and exceptions should never have left this function, so I made it noexcept as well. Related work items: #21270995 Retrieved from official/rs_onecore_dep_uxp 08f8855377bde6d05fade032335fedf4d1387de2 Related work items: #21270995
This commit is contained in:
parent
b7b7cab0a5
commit
eb480b6bbb
|
@ -84,7 +84,8 @@ Renderer::~Renderer()
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
[[nodiscard]] HRESULT Renderer::_PaintFrameForEngine(_In_ IRenderEngine* const pEngine)
|
||||
[[nodiscard]] HRESULT Renderer::_PaintFrameForEngine(_In_ IRenderEngine* const pEngine) noexcept
|
||||
try
|
||||
{
|
||||
FAIL_FAST_IF_NULL(pEngine); // This is a programming error. Fail fast.
|
||||
|
||||
|
@ -148,6 +149,7 @@ Renderer::~Renderer()
|
|||
// As we leave the scope, EndPaint will be called (declared above)
|
||||
return S_OK;
|
||||
}
|
||||
CATCH_RETURN()
|
||||
|
||||
void Renderer::_NotifyPaintFrame()
|
||||
{
|
||||
|
|
|
@ -86,7 +86,7 @@ namespace Microsoft::Console::Render
|
|||
|
||||
void _NotifyPaintFrame();
|
||||
|
||||
[[nodiscard]] HRESULT _PaintFrameForEngine(_In_ IRenderEngine* const pEngine);
|
||||
[[nodiscard]] HRESULT _PaintFrameForEngine(_In_ IRenderEngine* const pEngine) noexcept;
|
||||
|
||||
bool _CheckViewportAndScroll();
|
||||
|
||||
|
|
Loading…
Reference in a new issue