mirror of https://github.com/FreeRDP/FreeRDP
[winpr,clipboard] fix wrong return check
This commit is contained in:
parent
7fe70c5685
commit
69b4898b73
|
@ -1146,7 +1146,7 @@ UINT synthetic_file_read_close(struct synthetic_file* file, BOOL force)
|
|||
if ((file->offset < 0) || ((UINT64)file->offset >= size) || force)
|
||||
{
|
||||
WLog_VRB(TAG, "close file %d", file->fd);
|
||||
if (CloseHandle(file->fd) < 0)
|
||||
if (!CloseHandle(file->fd))
|
||||
{
|
||||
WLog_WARN(TAG, "failed to close fd %d: %" PRIu32, file->fd, GetLastError());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue