Correct the way that VerFindFileA checks for a file that is
exclusively locked.
This commit is contained in:
parent
f91b3ae3e4
commit
946f91103d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue