From d8e8bf84761ec48c8bcec083c5e5b8a0dc03abd4 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 20 Mar 2018 11:31:53 +0100 Subject: [PATCH] Removed xrdp workarounds. These workarounds limit functionality with other server implementations and should be fixed in xrdp. --- channels/drive/client/drive_file.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/channels/drive/client/drive_file.c b/channels/drive/client/drive_file.c index 253b5887d..38b362263 100644 --- a/channels/drive/client/drive_file.c +++ b/channels/drive/client/drive_file.c @@ -332,11 +332,6 @@ DRIVE_FILE* drive_file_new(const WCHAR* base_path, const WCHAR* path, UINT32 Pat return NULL; } - if (DesiredAccess & 0x1000L) - { - DesiredAccess = (DesiredAccess & ~0x1000L) | GENERIC_WRITE; - } - file->file_handle = INVALID_HANDLE_VALUE; file->find_handle = INVALID_HANDLE_VALUE; file->id = id; @@ -636,8 +631,6 @@ BOOL drive_file_set_information(DRIVE_FILE* file, UINT32 FsInformationClass, UIN return FALSE; } - liSize.QuadPart = size & 0xFFFFFFFF; - if (!SetFilePointerEx(file->file_handle, liSize, NULL, FILE_BEGIN)) { WLog_ERR(TAG, "Unable to truncate %s to %d (%"PRId32")", file->fullpath, size, GetLastError());