msi: Return ERROR_FUNCTION_FAILED if a matching row is not found.
This commit is contained in:
parent
46ec7ee183
commit
26f86c55c9
|
@ -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 */
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue