summaryrefslogtreecommitdiffstats
path: root/winpr/libwinpr/file/test
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:25:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:25:37 +0000
commit3c206f96fd1e102a13b2971778060fef4be7afbc (patch)
tree26d54f12b25a491844130c7934c60d97c85807b7 /winpr/libwinpr/file/test
parentReleasing progress-linux version 3.5.0+dfsg1-1~progress7.99u1. (diff)
downloadfreerdp3-3c206f96fd1e102a13b2971778060fef4be7afbc.tar.xz
freerdp3-3c206f96fd1e102a13b2971778060fef4be7afbc.zip
Merging upstream version 3.5.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'winpr/libwinpr/file/test')
-rw-r--r--winpr/libwinpr/file/test/TestFileFindFirstFile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/winpr/libwinpr/file/test/TestFileFindFirstFile.c b/winpr/libwinpr/file/test/TestFileFindFirstFile.c
index 04829a3..0e5de44 100644
--- a/winpr/libwinpr/file/test/TestFileFindFirstFile.c
+++ b/winpr/libwinpr/file/test/TestFileFindFirstFile.c
@@ -98,7 +98,8 @@ static BOOL find_first_file_success(const char* FilePath)
}
rc = TRUE;
fail:
- FindClose(hFind);
+ if (hFind != INVALID_HANDLE_VALUE)
+ FindClose(hFind);
return rc;
}