msi: Return ERROR_FUNCTION_FAILED if a matching row is not found.

This commit is contained in:
James Hawkins 2007-10-17 22:54:39 -05:00 committed by Alexandre Julliard
parent 46ec7ee183
commit 26f86c55c9
2 changed files with 3 additions and 9 deletions

View File

@ -1560,7 +1560,7 @@ static UINT msi_table_update(struct tagMSIVIEW *view, MSIRECORD *rec, UINT row)
if (r != ERROR_SUCCESS)
{
ERR("can't find row to modify\n");
return ERROR_SUCCESS;
return ERROR_FUNCTION_FAILED;
}
/* the row cannot be changed */

View File

@ -841,10 +841,7 @@ static void test_viewmodify(void)
ok(r == ERROR_SUCCESS, "MsiRecordSetInteger failed\n");
r = MsiViewModify(hview, MSIMODIFY_UPDATE, hrec);
todo_wine
{
ok(r == ERROR_FUNCTION_FAILED, "MsiViewModify failed\n");
}
r = MsiCloseHandle(hrec);
ok(r == ERROR_SUCCESS, "failed to close record\n");
@ -892,10 +889,7 @@ static void test_viewmodify(void)
ok(r == ERROR_SUCCESS, "failed to set string\n");
r = MsiViewModify(hview, MSIMODIFY_UPDATE, hrec);
todo_wine
{
ok(r == ERROR_FUNCTION_FAILED, "Expected ERROR_FUNCTION_FAILED, got %d\n", r);
}
r = MsiCloseHandle(hrec);
ok(r == ERROR_SUCCESS, "failed to close record\n");