ntdll/tests: Use FindClose() to close handles returned by FindFirstFileW() (Valgrind).

Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2021-05-02 16:36:20 +02:00 committed by Alexandre Julliard
parent 2d218c924d
commit fc8bf8d33d
1 changed files with 2 additions and 2 deletions

View File

@ -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)); "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 ); HeapFree( GetProcessHeap(), 0, fli );
delete_object( oldpath ); delete_object( oldpath );
delete_object( newpath ); 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)); "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 ); HeapFree( GetProcessHeap(), 0, fli );
delete_object( oldpath ); delete_object( oldpath );
} }