nitpicker: return OUT_OF_CAPS instead throwing

it as exception.

Issue #5242
Fix #5366
This commit is contained in:
Alexander Boettcher 2024-10-18 13:10:51 +02:00 committed by Christian Helmuth
parent b908999def
commit 5497829608

View File

@ -383,7 +383,7 @@ Gui_session::Buffer_result Gui_session::buffer(Framebuffer::Mode mode)
/* buffer re-allocation may consume new dataspace capability if buffer is new */
if (_cap_quota_guard().avail().value < 1)
throw Buffer_result::OUT_OF_CAPS;
return Buffer_result::OUT_OF_CAPS;
_framebuffer_session_component.notify_mode_change(mode);
return Buffer_result::OK;