mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 13:26:27 +00:00
nitpicker: return OUT_OF_CAPS instead throwing
it as exception. Issue #5242 Fix #5366
This commit is contained in:
parent
b908999def
commit
5497829608
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user