Commit 54c7df15 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

sxs: Skip file copy when assembly is already installed.

parent 499fa1d9
......@@ -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)
......
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