setupapi: Reset the source file pointer when comparing files.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-06-11 11:16:30 -05:00 committed by Alexandre Julliard
parent 72d055854b
commit 007a9c9726
1 changed files with 2 additions and 0 deletions

View File

@ -933,6 +933,8 @@ static BOOL find_existing_inf(const WCHAR *source, WCHAR *target)
if (dest_file == INVALID_HANDLE_VALUE)
continue;
SetFilePointer( source_file, 0, NULL, FILE_BEGIN );
if (GetFileSizeEx( dest_file, &dest_file_size )
&& dest_file_size.QuadPart == source_file_size.QuadPart
&& !compare_files( source_file, dest_file ))