Commit 9a9faeff authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Don't assume unversioned files are present.

parent f08c355e
...@@ -2002,7 +2002,10 @@ static UINT msi_check_file_install_states( MSIPACKAGE *package ) ...@@ -2002,7 +2002,10 @@ static UINT msi_check_file_install_states( MSIPACKAGE *package )
msi_free( file_version ); msi_free( file_version );
} }
else else
file->state = msifs_present; {
file->state = msifs_overwrite;
comp->Cost += file->FileSize;
}
} }
return ERROR_SUCCESS; return ERROR_SUCCESS;
......
...@@ -706,7 +706,7 @@ static void test_simple_patch( void ) ...@@ -706,7 +706,7 @@ static void test_simple_patch( void )
} }
size = get_pf_file_size( "msitest\\patch.txt" ); 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 ); strcpy( path, CURR_DIR );
strcat( path, "\\" ); strcat( path, "\\" );
......
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