From b288722ea658e5960258d2929117987ac5043022 Mon Sep 17 00:00:00 2001 From: Daniel Cohen Gindi Date: Tue, 30 Sep 2014 14:42:23 +0300 Subject: A forgotten `#ifdef WIN32` broke UNIX build. --- libvncserver/rfbserver.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.1