summaryrefslogtreecommitdiffstats
path: root/VisualNaCro
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2011-03-28 15:13:29 +0200
committerChristian Beier <dontmind@freeshell.org>2011-03-28 15:13:29 +0200
commit471baea920773e3080b7972b93dbe091ebe3b4e0 (patch)
treef29897c140230af1ce95943baa18b89d664b8ba3 /VisualNaCro
parent64daa71ede302d4d0ba4174b3dcec49bf2588111 (diff)
parent62b7acf48009cfad1a54bd8ba04b662f9ac53c80 (diff)
downloadlibtdevnc-471baea920773e3080b7972b93dbe091ebe3b4e0.tar.gz
libtdevnc-471baea920773e3080b7972b93dbe091ebe3b4e0.zip
Merge branch 'master' of ssh://libvncserver.git.sourceforge.net/gitroot/libvncserver/libvncserver
Diffstat (limited to 'VisualNaCro')
-rw-r--r--VisualNaCro/nacro.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/VisualNaCro/nacro.c b/VisualNaCro/nacro.c
index 2fc9e36..9c492b0 100644
--- a/VisualNaCro/nacro.c
+++ b/VisualNaCro/nacro.c
@@ -121,6 +121,8 @@ static rfbBool malloc_frame_buffer(rfbClient* cl)
res->client->frameBuffer=malloc(w*4*h);
res->server=rfbGetScreen(NULL,NULL,w,h,8,3,4);
+ if(!res->server)
+ return FALSE;
res->server->screenData=res;
res->server->port=res->listen_port;
res->server->frameBuffer=res->client->frameBuffer;