mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
nitpicker: return OUT_OF_CAPS instead throwing
it as exception. Issue #5242 Fix #5366
This commit is contained in:
committed by
Christian Helmuth
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;
|
||||
|
||||
Reference in New Issue
Block a user