summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Cohen Gindi <Danielgindi@gmail.com>2014-09-30 14:42:23 +0300
committerDaniel Cohen Gindi <Danielgindi@gmail.com>2014-09-30 14:42:23 +0300
commitb288722ea658e5960258d2929117987ac5043022 (patch)
tree00ae37cdb9bd629ff1b3e1bb9212f3189a42d227
parentbf87073f7a971f30e41af2a140822c4774c01313 (diff)
downloadlibvncserver-b288722ea658e5960258d2929117987ac5043022.zip
libvncserver-b288722ea658e5960258d2929117987ac5043022.tar.gz
A forgotten `#ifdef WIN32` broke UNIX build.
-rw-r--r--libvncserver/rfbserver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvncserver/rfbserver.c b/libvncserver/rfbserver.c
index ad76fbc..f64ea4e 100644
--- a/libvncserver/rfbserver.c
+++ b/libvncserver/rfbserver.c
@@ -1418,11 +1418,13 @@ rfbBool rfbSendDirContent(rfbClientPtr cl, int length, char *buffer)
}
}
+#ifdef WIN32
if (FindNextFileA(findHandle, &winFindData) == 0)
{
FindClose(findHandle);
findHandle = INVALID_HANDLE_VALUE;
}
+#endif
}
#ifdef WIN32
if (findHandle != INVALID_HANDLE_VALUE)
OpenPOWER on IntegriCloud