msi/tests: Test the correct return values.

This commit is contained in:
Michael Stefaniuc 2012-05-17 00:50:38 +02:00 committed by Alexandre Julliard
parent 0f032203f5
commit 49add07795
2 changed files with 3 additions and 3 deletions

View File

@ -1490,7 +1490,7 @@ static void test_longstrings(void)
HeapFree(GetProcessHeap(), 0, str);
MsiDatabaseCommit(hdb);
r = MsiDatabaseCommit(hdb);
ok(r == ERROR_SUCCESS, "MsiDatabaseCommit failed\n");
MsiCloseHandle(hdb);

View File

@ -254,7 +254,7 @@ static void test_suminfo(void)
ok(r == ERROR_SUCCESS, "MsiCloseHandle failed\n");
/* filename, non-zero update count */
MsiGetSummaryInformation(0, msifile, 1, &hsuminfo);
r = MsiGetSummaryInformation(0, msifile, 1, &hsuminfo);
ok(r == ERROR_SUCCESS, "MsiGetSummaryInformation failed\n");
r = MsiSummaryInfoSetProperty(hsuminfo, PID_AUTHOR, VT_LPSTR, 1, &ft, "Mike");
@ -267,7 +267,7 @@ static void test_suminfo(void)
ok(r == ERROR_SUCCESS, "MsiCloseHandle failed %u\n", r);
/* filename, zero update count */
MsiGetSummaryInformation(0, msifile, 0, &hsuminfo);
r = MsiGetSummaryInformation(0, msifile, 0, &hsuminfo);
ok(r == ERROR_SUCCESS, "MsiGetSummaryInformation failed %u\n", r);
r = MsiSummaryInfoSetProperty(hsuminfo, PID_AUTHOR, VT_LPSTR, 1, &ft, "Mike");