Small code improvements.
Fixed bug with it - the server didn't send message FileListData when the requested folder is unavailable for any reasons.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@574 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfb/SFileTransfer.cxx b/rfb/SFileTransfer.cxx
index fe4e9af..6f444e9 100644
--- a/rfb/SFileTransfer.cxx
+++ b/rfb/SFileTransfer.cxx
@@ -83,8 +83,9 @@
if (flags & 0x10) bDirOnly = true;
FileInfo fi;
- if (!makeFileList(szDirName, &fi, bDirOnly)) return false;
-
+ if (!makeFileList(szDirName, &fi, bDirOnly)) {
+ flags = (flags | 0x80);
+ }
return m_writer.writeFileListData((unsigned char)flags, &fi);
}