[SETUPAPI]
authorThomas Faber <thomas.faber@reactos.org>
Thu, 6 Oct 2011 22:31:29 +0000 (22:31 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Thu, 6 Oct 2011 22:31:29 +0000 (22:31 +0000)
- Correctly interpret the result of compare_files in SetupCopyOEMInfW. Prevents random failures

svn path=/trunk/; revision=54036

reactos/dll/win32/setupapi/install.c

index 839b66c..cc47900 100644 (file)
@@ -2408,7 +2408,7 @@ BOOL WINAPI SetupCopyOEMInfW(
                     {
                         if (GetFileSizeEx(hDestFile, &DestFileSize)
                          && DestFileSize.QuadPart == SourceFileSize.QuadPart
                     {
                         if (GetFileSizeEx(hDestFile, &DestFileSize)
                          && DestFileSize.QuadPart == SourceFileSize.QuadPart
-                         && compare_files(hSourceFile, hDestFile))
+                         && !compare_files(hSourceFile, hDestFile))
                         {
                             TRACE("%s already exists as %s\n",
                                 debugstr_w(SourceInfFileName), debugstr_w(pFileName));
                         {
                             TRACE("%s already exists as %s\n",
                                 debugstr_w(SourceInfFileName), debugstr_w(pFileName));