diff options
Diffstat (limited to 'winpr/libwinpr/clipboard/synthetic_file.c')
-rw-r--r-- | winpr/libwinpr/clipboard/synthetic_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winpr/libwinpr/clipboard/synthetic_file.c b/winpr/libwinpr/clipboard/synthetic_file.c index 9a1084b..4290d2a 100644 --- a/winpr/libwinpr/clipboard/synthetic_file.c +++ b/winpr/libwinpr/clipboard/synthetic_file.c @@ -1105,8 +1105,8 @@ static UINT file_get_range(struct synthetic_file* file, UINT64 offset, UINT32 si if (!GetFileInformationByHandle(file->fd, &FileInfo)) { - file->fd = INVALID_HANDLE_VALUE; CloseHandle(file->fd); + file->fd = INVALID_HANDLE_VALUE; error = GetLastError(); WLog_ERR(TAG, "Get file [%s] information fail: 0x%08" PRIx32, file->local_name, error); return error; |