msi: Prevent cryptic error.

This commit is contained in:
André Hentschel 2010-07-29 19:58:30 +02:00 committed by Alexandre Julliard
parent bb53f8a782
commit 428e8a5a01
1 changed files with 4 additions and 1 deletions

View File

@ -1119,7 +1119,10 @@ static UINT copy_package_to_temp( LPCWSTR szPackage, LPWSTR filename )
if( !CopyFileW( szPackage, filename, FALSE ) )
{
UINT error = GetLastError();
ERR("failed to copy package %s to %s (%u)\n", debugstr_w(szPackage), debugstr_w(filename), error);
if ( error == ERROR_FILE_NOT_FOUND )
ERR("can't find %s\n", debugstr_w(szPackage));
else
ERR("failed to copy package %s to %s (%u)\n", debugstr_w(szPackage), debugstr_w(filename), error);
DeleteFileW( filename );
return error;
}