Commit 007a9c97 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

setupapi: Reset the source file pointer when comparing files.

parent 72d05585
......@@ -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 ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment