Author: tfaber
Date: Thu Oct 6 22:31:29 2011
New Revision: 54036
URL:
http://svn.reactos.org/svn/reactos?rev=54036&view=rev
Log:
[SETUPAPI]
- Correctly interpret the result of compare_files in SetupCopyOEMInfW. Prevents random
failures
Modified:
trunk/reactos/dll/win32/setupapi/install.c
Modified: trunk/reactos/dll/win32/setupapi/install.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/install…
==============================================================================
--- trunk/reactos/dll/win32/setupapi/install.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/install.c [iso-8859-1] Thu Oct 6 22:31:29 2011
@@ -2408,7 +2408,7 @@
{
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));