msi/tests: Don't check more bytes than written to the file.

This commit is contained in:
Hans Leidekker 2009-12-01 11:34:07 +01:00 committed by Alexandre Julliard
parent bdad5ace2a
commit fd8620f6c0
1 changed files with 1 additions and 1 deletions

View File

@ -2849,7 +2849,7 @@ static void test_readonlyfile_cab(void)
ReadFile(file, buf, sizeof(buf) - 1, &size, NULL);
CloseHandle(file);
}
ok( !lstrcmp( buf, "maximus" ), "Expected file to be overwritten, got '%s'\n", buf );
ok(!memcmp( buf, "maximus", sizeof("maximus")-1 ), "Expected file to be overwritten, got '%s'\n", buf);
ok(delete_pf("msitest\\maximus", TRUE), "File not installed\n");
ok(delete_pf("msitest", FALSE), "File not installed\n");