msxml3/tests: Prevent crash in saxreader tests.

This commit is contained in:
Octavian Voicu 2011-08-25 03:43:05 +03:00 committed by Alexandre Julliard
parent 9ec291500b
commit ace8b53418
1 changed files with 1 additions and 1 deletions

View File

@ -1714,7 +1714,7 @@ static void test_mxwriter_encoding(void)
hr = IMXWriter_get_output(writer, &dest);
todo_wine ok(hr == S_OK, "get_output failed: %08x\n", hr);
todo_wine ok(V_VT(&dest) == VT_BSTR, "Expected VT_BSTR, got %d\n", V_VT(&dest));
todo_wine ok(!lstrcmpW(_bstr_("<?xml version=\"1.0\" encoding=\"UTF-16\" standalone=\"no\"?>\r\n"), V_BSTR(&dest)),
if (V_VT(&dest) == VT_BSTR) todo_wine ok(!lstrcmpW(_bstr_("<?xml version=\"1.0\" encoding=\"UTF-16\" standalone=\"no\"?>\r\n"), V_BSTR(&dest)),
"got wrong content: %s\n", wine_dbgstr_w(V_BSTR(&dest)));
VariantClear(&dest);