Correct the way that VerFindFileA checks for a file that is

exclusively locked.
This commit is contained in:
Oliver Stieber 2005-10-28 10:42:09 +00:00 committed by Alexandre Julliard
parent f91b3ae3e4
commit 946f91103d

View file

@ -182,8 +182,11 @@ DWORD WINAPI VerFindFileA(
}
}
if (lpszFilename && !testFileExistenceA(curDir, lpszFilename, TRUE))
retval |= VFF_FILEINUSE;
/* Check to see if the file exists and is inuse by another application */
if (lpszFilename && testFileExistenceA(curDir, lpszFilename, FALSE)) {
if (lpszFilename && !testFileExistenceA(curDir, lpszFilename, TRUE))
retval |= VFF_FILEINUSE;
}
curDirSizeReq = strlen(curDir) + 1;
destDirSizeReq = strlen(destDir) + 1;