summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-05-06 18:41:45 -0700
committerPavel Roskin <plroskin@gmail.com>2016-05-06 18:58:16 -0700
commitf2d326cbed91b3e73ab1e1d83615b2b475640241 (patch)
tree15b7341c1b0b2630cd407e744dec628ad4bbcdfa /sesman/chansrv
parent0dd0426e6fc34aebadfa575f12eaa4305d6eeb93 (diff)
downloadxrdp-proprietary-f2d326cbed91b3e73ab1e1d83615b2b475640241.tar.gz
xrdp-proprietary-f2d326cbed91b3e73ab1e1d83615b2b475640241.zip
Remove unused variables from dev_redir_proc_query_dir_response()
Diffstat (limited to 'sesman/chansrv')
-rw-r--r--sesman/chansrv/devredir.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/sesman/chansrv/devredir.c b/sesman/chansrv/devredir.c
index b1558463..cc8ca22e 100644
--- a/sesman/chansrv/devredir.c
+++ b/sesman/chansrv/devredir.c
@@ -890,22 +890,14 @@ dev_redir_proc_query_dir_response(IRP *irp,
XRDP_INODE *xinode;
tui32 Length;
- tui32 NextEntryOffset;
tui64 CreationTime;
tui64 LastAccessTime;
tui64 LastWriteTime;
- tui64 ChangeTime;
tui64 EndOfFile;
tui32 FileAttributes;
tui32 FileNameLength;
tui32 status;
-#ifdef USE_SHORT_NAMES_IN_DIR_LISTING
- tui32 EaSize;
- tui8 ShortNameLength;
- tui8 Reserved;
-#endif
-
char filename[256];
int i = 0;
@@ -935,21 +927,21 @@ dev_redir_proc_query_dir_response(IRP *irp,
{
log_debug("processing FILE_DIRECTORY_INFORMATION structs");
- xstream_rd_u32_le(s_in, NextEntryOffset);
+ xstream_seek(s_in, 4); /* NextEntryOffset */
xstream_seek(s_in, 4); /* FileIndex */
xstream_rd_u64_le(s_in, CreationTime);
xstream_rd_u64_le(s_in, LastAccessTime);
xstream_rd_u64_le(s_in, LastWriteTime);
- xstream_rd_u64_le(s_in, ChangeTime);
+ xstream_seek(s_in, 8); /* ChangeTime */
xstream_rd_u64_le(s_in, EndOfFile);
xstream_seek(s_in, 8); /* AllocationSize */
xstream_rd_u32_le(s_in, FileAttributes);
xstream_rd_u32_le(s_in, FileNameLength);
#ifdef USE_SHORT_NAMES_IN_DIR_LISTING
- xstream_rd_u32_le(s_in, EaSize);
- xstream_rd_u8(s_in, ShortNameLength);
- xstream_rd_u8(s_in, Reserved);
+ xstream_seek(s_in, 4); /* EaSize */
+ xstream_seek(s_in, 1); /* ShortNameLength */
+ xstream_seek(s_in, 1); /* Reserved */
xstream_seek(s_in, 23); /* ShortName in Unicode */
#endif
devredir_cvt_from_unicode_len(filename, s_in->p, FileNameLength);
@@ -959,11 +951,9 @@ dev_redir_proc_query_dir_response(IRP *irp,
#else
i += 64 + FileNameLength;
#endif
- //log_debug("NextEntryOffset: 0x%x", NextEntryOffset);
//log_debug("CreationTime: 0x%llx", CreationTime);
//log_debug("LastAccessTime: 0x%llx", LastAccessTime);
//log_debug("LastWriteTime: 0x%llx", LastWriteTime);
- //log_debug("ChangeTime: 0x%llx", ChangeTime);
//log_debug("EndOfFile: %lld", EndOfFile);
//log_debug("FileAttributes: 0x%x", FileAttributes);
#ifdef USE_SHORT_NAMES_IN_DIR_LISTING