From 16769b26b2bbd7adbca85eb93fe9b2c4dcd944f3 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Wed, 6 Sep 2006 13:51:06 -0700 Subject: [PATCH] msi: Fix two MsiFormatRecord tests. --- dlls/msi/tests/format.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/dlls/msi/tests/format.c b/dlls/msi/tests/format.c index e56b45790f0..5a5cdd10fb1 100644 --- a/dlls/msi/tests/format.c +++ b/dlls/msi/tests/format.c @@ -1835,14 +1835,11 @@ static void test_formatrecord_tables(void) /* component with INSTALLSTATE_LOCAL */ size = MAX_PATH; - MsiRecordSetString( hrec, 0, "[$temporal]" ); + MsiRecordSetString( hrec, 1, "[$temporal]" ); r = MsiFormatRecord( hpkg, hrec, buf, &size ); ok( r == ERROR_SUCCESS, "format record failed: %d\n", r); - todo_wine - { - ok( !lstrcmp( buf, "1: C:\\I am a really long directory\\ " ), - "Expected '1: C:\\I am a really long directory\\ ', got %s\n", buf); - } + ok( !lstrcmp( buf, "1: C:\\I am a really long directory\\ " ), + "Expected '1: C:\\I am a really long directory\\ ', got %s\n", buf); r = MsiSetComponentState( hpkg, "temporal", INSTALLSTATE_SOURCE ); ok( r == ERROR_SUCCESS, "failed to set install state: %d\n", r); @@ -1857,7 +1854,7 @@ static void test_formatrecord_tables(void) ok( r == ERROR_SUCCESS, "format record failed: %d\n", r); todo_wine { - ok( !lstrcmp( buf, expected ), "Expected '%s', got %s\n", buf, expected); + ok( !lstrcmp( buf, expected ), "Expected '%s', got %s\n", expected, buf); } DeleteFile( "C:\\I am a really long directory\\temporal.txt" );