Skip to content

Commit

Permalink
libvncclient: modify the judgment conditions of whether the screen is
Browse files Browse the repository at this point in the history
valid  when handle ExtendedDesktopSize msg
  • Loading branch information
vin committed Jun 17, 2024
1 parent b44665c commit 45057e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libvncclient/rfbclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 45057e0

Please sign in to comment.