mirror of
https://github.com/sheumann/VNCviewGS.git
synced 2024-11-22 02:30:47 +00:00
Report zero-length reads as successful.
I've encountered a server that sometimes sends zero-size cursor updates, which can trigger this case.
This commit is contained in:
parent
af7b5b8119
commit
462b351425
@ -351,6 +351,8 @@ BOOLEAN DoReadTCP (unsigned long dataLength) {
|
||||
static srBuff theSRBuff;
|
||||
static rrBuff theRRBuff;
|
||||
|
||||
if (dataLength == 0)
|
||||
return TRUE;
|
||||
DoneWithReadBuffer();
|
||||
TCPIPPoll();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user