Add specific Xrdp workarounds
This reverts commit 36d95d73715bd081019538c55f74294aa9faffba.
This commit is contained in:
parent
c7924b554d
commit
9a76a43088
@ -337,6 +337,11 @@ DRIVE_FILE* drive_file_new(const WCHAR* base_path, const WCHAR* path, UINT32 Pat
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (DesiredAccess & 0x1000L)
|
||||||
|
{
|
||||||
|
DesiredAccess = (DesiredAccess & ~0x1000L) | GENERIC_WRITE;
|
||||||
|
}
|
||||||
|
|
||||||
file->file_handle = INVALID_HANDLE_VALUE;
|
file->file_handle = INVALID_HANDLE_VALUE;
|
||||||
file->find_handle = INVALID_HANDLE_VALUE;
|
file->find_handle = INVALID_HANDLE_VALUE;
|
||||||
file->id = id;
|
file->id = id;
|
||||||
@ -626,6 +631,8 @@ BOOL drive_file_set_information(DRIVE_FILE* file, UINT32 FsInformationClass, UIN
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
liSize.QuadPart = size & 0xFFFFFFFF;
|
||||||
|
|
||||||
if (SetFilePointer(file->file_handle, liSize.LowPart, &liSize.HighPart,
|
if (SetFilePointer(file->file_handle, liSize.LowPart, &liSize.HighPart,
|
||||||
FILE_BEGIN) == INVALID_SET_FILE_POINTER)
|
FILE_BEGIN) == INVALID_SET_FILE_POINTER)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user