mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-13 17:38:13 +01:00
Add a more specific error for a nonexistent screenshot
This commit is contained in:
parent
688e749fda
commit
1269fddadf
@ -108,6 +108,9 @@ uint8_t *GetAPIMessager::netGetScreenshot(uint16_t w, uint16_t h,
|
|||||||
if (h > screenH)
|
if (h > screenH)
|
||||||
h = screenH;
|
h = screenH;
|
||||||
|
|
||||||
|
if (!screenW || !screenH)
|
||||||
|
vlog.error("Screenshot requested but no screenshot exists (screen hasn't been viewed)");
|
||||||
|
|
||||||
if (!w || !h || q > 9 || !staging)
|
if (!w || !h || q > 9 || !staging)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user