mirror of
https://github.com/sheumann/VNCviewGS.git
synced 2025-02-18 01:30:49 +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 srBuff theSRBuff;
|
||||||
static rrBuff theRRBuff;
|
static rrBuff theRRBuff;
|
||||||
|
|
||||||
|
if (dataLength == 0)
|
||||||
|
return TRUE;
|
||||||
DoneWithReadBuffer();
|
DoneWithReadBuffer();
|
||||||
TCPIPPoll();
|
TCPIPPoll();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user