Commit 946f9110 authored by Oliver Stieber's avatar Oliver Stieber Committed by Alexandre Julliard

Correct the way that VerFindFileA checks for a file that is

exclusively locked.
parent f91b3ae3
......@@ -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;
......
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