summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <johannes.schindelin@gmx.de>2014-09-30 13:44:24 +0200
committerdscho <johannes.schindelin@gmx.de>2014-09-30 13:44:24 +0200
commit198c855d2af4746219b79581e6b3014de8d556e2 (patch)
tree00ae37cdb9bd629ff1b3e1bb9212f3189a42d227
parentbf87073f7a971f30e41af2a140822c4774c01313 (diff)
parentb288722ea658e5960258d2929117987ac5043022 (diff)
downloadlibvncserver-198c855d2af4746219b79581e6b3014de8d556e2.zip
libvncserver-198c855d2af4746219b79581e6b3014de8d556e2.tar.gz
Merge pull request #36 from danielgindi/master
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