diff options
author | Christian Beier <dontmind@freeshell.org> | 2015-04-17 12:31:13 +0200 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2015-04-17 12:31:13 +0200 |
commit | 7c7e8e765c06a8af13c1f2662f1c7084c937738a (patch) | |
tree | acc64cdd41616efd5958005acce5d2dca435e407 /libvncclient/rfbproto.c | |
parent | e543e1ac1b11a0ef0b1bdd25b06a27b3ac2156c2 (diff) | |
download | libtdevnc-7c7e8e765c06a8af13c1f2662f1c7084c937738a.tar.gz libtdevnc-7c7e8e765c06a8af13c1f2662f1c7084c937738a.zip |
Re-add the useful bits of 9aa9ac59b4cb10bfca93456a3098e348de172d7f.
Diffstat (limited to 'libvncclient/rfbproto.c')
-rw-r--r-- | libvncclient/rfbproto.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c index 721c3ae..e2a583c 100644 --- a/libvncclient/rfbproto.c +++ b/libvncclient/rfbproto.c @@ -167,6 +167,10 @@ static void FillRectangle(rfbClient* client, int x, int y, int w, int h, uint32_ static void CopyRectangle(rfbClient* client, uint8_t* buffer, int x, int y, int w, int h) { int j; + if (client->frameBuffer == NULL) { + return; + } + #define COPY_RECT(BPP) \ { \ int rs = w * BPP / 8, rs2 = client->width * BPP / 8; \ |