mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-02-16 10:29:19 +01:00
Catch errors resizing framebuffer
This commit is contained in:
parent
9eca28a084
commit
e5b02f996e
@ -430,8 +430,13 @@ void vncPostScreenResize(int scrIdx, int success, int width, int height)
|
||||
{
|
||||
if (success) {
|
||||
// Let the RFB core know of the new dimensions and framebuffer
|
||||
desktop[scrIdx]->setFramebuffer(width, height,
|
||||
vncFbptr[scrIdx], vncFbstride[scrIdx]);
|
||||
try {
|
||||
desktop[scrIdx]->setFramebuffer(width, height,
|
||||
vncFbptr[scrIdx],
|
||||
vncFbstride[scrIdx]);
|
||||
} catch (rdr::Exception& e) {
|
||||
vncFatalError("vncPostScreenResize: %s\n", e.str());
|
||||
}
|
||||
}
|
||||
|
||||
desktop[scrIdx]->unblockUpdates();
|
||||
|
Loading…
Reference in New Issue
Block a user