From 946f91103d4f0fe547ffd8e94cd0ad0df878699e Mon Sep 17 00:00:00 2001 From: Oliver Stieber Date: Fri, 28 Oct 2005 10:42:09 +0000 Subject: [PATCH] Correct the way that VerFindFileA checks for a file that is exclusively locked. --- dlls/version/install.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/version/install.c b/dlls/version/install.c index 8bd73586233..fb1fe3049b5 100644 --- a/dlls/version/install.c +++ b/dlls/version/install.c @@ -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; -- 2.11.4.GIT