Module: wine Branch: master Commit: 9ee4b8b0789716e61efce0f8c83b993a10819542 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9ee4b8b0789716e61efce0f8c8...
Author: Zhenbo Li litimetal@gmail.com Date: Mon Aug 18 16:55:34 2014 +0800
mshtml/tests: Fix test_tr_modify().
---
dlls/mshtml/tests/dom.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 33645c8..dddb28c 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -5801,7 +5801,7 @@ static void test_tr_modify(IHTMLElement *elem, IHTMLTableRow *row) { HRESULT hres; IDispatch *disp; - IUnknown *unk; + IHTMLTableCell *cell;
hres = IHTMLTableRow_deleteCell(row, 0); ok(hres == S_OK, "deleteCell failed: %08x\n", hres); @@ -5810,10 +5810,11 @@ static void test_tr_modify(IHTMLElement *elem, IHTMLTableRow *row) hres = IHTMLTableRow_insertCell(row, 0, &disp); ok(hres == S_OK, "insertCell failed: %08x\n", hres); ok(disp != NULL, "disp == NULL\n"); - hres = IDispatch_QueryInterface(disp, &IID_IHTMLTableCell, (void **)&unk); + hres = IDispatch_QueryInterface(disp, &IID_IHTMLTableCell, (void **)&cell); ok(hres == S_OK, "Could not get IID_IHTMLTableCell interface: %08x\n", hres); + ok(cell != NULL, "cell == NULL\n"); if (SUCCEEDED(hres)) - IUnknown_Release(unk); + IHTMLTableCell_Release(cell); test_tr_possess(elem, row, 2, "td2"); IDispatch_Release(disp); }