msi: Don't assume unversioned files are present.

This commit is contained in:
Hans Leidekker 2010-04-19 12:38:30 +02:00 committed by Alexandre Julliard
parent f08c355e09
commit 9a9faeffd8
2 changed files with 5 additions and 2 deletions

View File

@ -2002,7 +2002,10 @@ static UINT msi_check_file_install_states( MSIPACKAGE *package )
msi_free( file_version );
}
else
file->state = msifs_present;
{
file->state = msifs_overwrite;
comp->Cost += file->FileSize;
}
}
return ERROR_SUCCESS;

View File

@ -706,7 +706,7 @@ static void test_simple_patch( void )
}
size = get_pf_file_size( "msitest\\patch.txt" );
todo_wine ok( size == 1002, "expected 1002, got %u\n", size );
ok( size == 1002, "expected 1002, got %u\n", size );
strcpy( path, CURR_DIR );
strcat( path, "\\" );