From fad2c57cd6e2f45870ca7bbb6879cbe86ad85cbf Mon Sep 17 00:00:00 2001 From: speidy Date: Fri, 1 Sep 2017 08:47:37 +0300 Subject: [PATCH] xrdpvr: adjust xrdpvr_write_to_client to xrdpapi API change --- xrdpvr/xrdpvr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xrdpvr/xrdpvr.c b/xrdpvr/xrdpvr.c index a342a7e1..980a10d4 100644 --- a/xrdpvr/xrdpvr.c +++ b/xrdpvr/xrdpvr.c @@ -915,7 +915,7 @@ xrdpvr_write_to_client(void *channel, STREAM *s) rv = WTSVirtualChannelWrite(channel, &s->data[index], bytes_to_send, &bytes_written); - if (rv < 0) + if (rv == 0) { return -1; }