[PATCH 2/2] ntdll/tests: Use FindClose() to close handles returned by FindFirstFileW() (Valgrind).
Sven Baars
sbaars at codeweavers.com
Sun May 2 09:36:20 CDT 2021
Signed-off-by: Sven Baars <sbaars at codeweavers.com>
---
dlls/ntdll/tests/file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/tests/file.c b/dlls/ntdll/tests/file.c
index d469b449a74..b7b46365911 100644
--- a/dlls/ntdll/tests/file.c
+++ b/dlls/ntdll/tests/file.c
@@ -2319,7 +2319,7 @@ static void test_file_link_information(void)
"Link did not change casing on existing target file: got %s\n", wine_dbgstr_w(find_data.cFileName));
}
- CloseHandle( handle );
+ FindClose( handle );
HeapFree( GetProcessHeap(), 0, fli );
delete_object( oldpath );
delete_object( newpath );
@@ -2904,7 +2904,7 @@ static void test_file_link_information(void)
"Link did not change casing on same file: got %s\n", wine_dbgstr_w(find_data.cFileName));
}
- CloseHandle( handle );
+ FindClose( handle );
HeapFree( GetProcessHeap(), 0, fli );
delete_object( oldpath );
}
--
2.30.0.335.ge6362826a0
More information about the wine-devel
mailing list