Commit a3214c97 authored by Hib Eris's avatar Hib Eris Committed by Alexandre Julliard

msi: Fix a failure with merging existing tables.

parent 6aad5cb3
......@@ -1335,6 +1335,8 @@ static UINT merge_diff_row(MSIRECORD *rec, LPVOID param)
}
else if (r != ERROR_NO_MORE_ITEMS)
goto done;
r = ERROR_SUCCESS;
}
mergerow = msi_alloc(sizeof(MERGEROW));
......
......@@ -7598,15 +7598,15 @@ static void test_dbmerge(void)
MsiCloseHandle(hrec);
r = MsiViewFetch(hview, &hrec);
todo_wine ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
r = MsiRecordGetInteger(hrec, 1);
todo_wine ok(r == 2, "Expected 2, got %d\n", r);
ok(r == 2, "Expected 2, got %d\n", r);
size = MAX_PATH;
r = MsiRecordGetStringA(hrec, 2, buf, &size);
todo_wine ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
todo_wine ok(!lstrcmpA(buf, "bar"), "Expected \"bar\", got \"%s\"\n", buf);
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
ok(!lstrcmpA(buf, "bar"), "Expected \"bar\", got \"%s\"\n", buf);
MsiCloseHandle(hrec);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment