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:
parent
2d218c924d
commit
fc8bf8d33d
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue