summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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