sxs: Skip file copy when assembly is already installed.

This commit is contained in:
Hans Leidekker 2024-01-12 14:20:56 +01:00 committed by Alexandre Julliard
parent 499fa1d907
commit 54c7df15bb

View file

@ -598,6 +598,13 @@ static HRESULT install_assembly( const WCHAR *manifest, struct assembly *assembl
dst = build_manifest_filename( assembly->arch, assembly->name, assembly->token, assembly->version );
if (!dst) return E_OUTOFMEMORY;
if (GetFileAttributesW( dst ) != INVALID_FILE_ATTRIBUTES)
{
free( dst );
TRACE("manifest exists, skipping install\n");
return S_OK;
}
ret = CopyFileW( manifest, dst, FALSE );
free( dst );
if (!ret)