From 3c206f96fd1e102a13b2971778060fef4be7afbc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 03:25:37 +0200 Subject: Merging upstream version 3.5.1+dfsg1. Signed-off-by: Daniel Baumann --- winpr/libwinpr/file/test/TestFileFindFirstFile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winpr/libwinpr/file/test') 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; } -- cgit v1.2.3