From 45057e092270cfa31d49761c50c024fac2dc613e Mon Sep 17 00:00:00 2001 From: vin Date: Mon, 17 Jun 2024 21:54:09 +0800 Subject: [PATCH] libvncclient: modify the judgment conditions of whether the screen is valid when handle ExtendedDesktopSize msg --- src/libvncclient/rfbclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libvncclient/rfbclient.c b/src/libvncclient/rfbclient.c index 6f0afac2..1e1c4e57 100644 --- a/src/libvncclient/rfbclient.c +++ b/src/libvncclient/rfbclient.c @@ -2124,7 +2124,7 @@ HandleRFBServerMessage(rfbClient* client) if (!ReadFromRFBServer(client, ((char *)&screen), sz_rfbExtDesktopScreen)) { return FALSE; } - if (screen.id != 0 && screen.width && screen.height) { + if (screen.width && screen.height) { client->screen = screen; } else { invalidScreen = TRUE;