mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:50:52 +00:00
Correct the way that VerFindFileA checks for a file that is
exclusively locked.
This commit is contained in:
parent
f91b3ae3e4
commit
946f91103d
1 changed files with 5 additions and 2 deletions
|
@ -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 a new issue