projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6be3ba4
)
Fixed #5185 broken file size initialization.
author
Armin Novak
<armin.novak@thincast.com>
Mon, 14 Jan 2019 13:54:33 +0000
(14:54 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Mon, 14 Jan 2019 13:54:33 +0000
(14:54 +0100)
channels/drive/client/drive_file.c
patch
|
blob
|
history
diff --git
a/channels/drive/client/drive_file.c
b/channels/drive/client/drive_file.c
index
8419c2f
..
af0026b
100644
(file)
--- a/
channels/drive/client/drive_file.c
+++ b/
channels/drive/client/drive_file.c
@@
-615,6
+615,8
@@
BOOL drive_file_set_information(DRIVE_FILE* file, UINT32 FsInformationClass, UIN
return FALSE;
}
+ liSize.QuadPart = size;
+
if (!SetFilePointerEx(file->file_handle, liSize, NULL, FILE_BEGIN))
{
WLog_ERR(TAG, "Unable to truncate %s to %d (%"PRId32")", file->fullpath, size, GetLastError());