Allow for longer filenames from the redirector.
This commit ensures that filenames up to the maximum size supported
by our xfs can be supported.
(cherry picked from commit c3f7eec4f5
)
This commit is contained in:
parent
6c9d56efc2
commit
f3070aef15
@ -53,6 +53,7 @@
|
|||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "chansrv.h"
|
#include "chansrv.h"
|
||||||
#include "chansrv_fuse.h"
|
#include "chansrv_fuse.h"
|
||||||
|
#include "chansrv_xfs.h"
|
||||||
#include "devredir.h"
|
#include "devredir.h"
|
||||||
#include "smartcard.h"
|
#include "smartcard.h"
|
||||||
#include "ms-rdpefs.h"
|
#include "ms-rdpefs.h"
|
||||||
@ -1249,7 +1250,13 @@ devredir_proc_query_dir_response(IRP *irp,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Size the filename buffer so it's big enough for
|
||||||
|
// storing the file in our filesystem if we need to.
|
||||||
|
#ifdef XFS_MAXFILENAMELEN
|
||||||
|
char filename[XFS_MAXFILENAMELEN + 1];
|
||||||
|
#else
|
||||||
char filename[256];
|
char filename[256];
|
||||||
|
#endif
|
||||||
tui64 LastAccessTime;
|
tui64 LastAccessTime;
|
||||||
tui64 LastWriteTime;
|
tui64 LastWriteTime;
|
||||||
tui64 EndOfFile;
|
tui64 EndOfFile;
|
||||||
|
Loading…
Reference in New Issue
Block a user