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:
parent
72d055854b
commit
007a9c9726
|
@ -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 ))
|
||||
|
|
Loading…
Reference in New Issue