Commit f65b5e35 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

webservices/tests: Initialise dictionary to NULL.

parent 34a0c122
......@@ -465,6 +465,7 @@ static void test_WsWriteStartAttribute(void)
text.text.textType = WS_XML_TEXT_TYPE_UTF8;
text.value.length = 1;
text.value.bytes = (BYTE *)"0";
text.value.dictionary = NULL;
hr = WsWriteText( writer, &text.text, NULL );
ok( hr == S_OK, "got %08x\n", hr );
check_output( writer, "", __LINE__ );
......@@ -1130,6 +1131,7 @@ static void test_WsWriteStartCData(void)
text.text.textType = WS_XML_TEXT_TYPE_UTF8;
text.value.bytes = (BYTE *)"<data>";
text.value.length = 6;
text.value.dictionary = NULL;
hr = WsWriteText( writer, &text.text, NULL );
ok( hr == S_OK, "got %08x\n", hr );
check_output( writer, "<t><![CDATA[<data>", __LINE__ );
......@@ -1818,6 +1820,7 @@ static void test_WsWriteNode(void)
utf8.text.textType = WS_XML_TEXT_TYPE_UTF8;
utf8.value.bytes = (BYTE *)"value";
utf8.value.length = sizeof("value") - 1;
utf8.value.dictionary = NULL;
attr.singleQuote = TRUE;
attr.isXmlNs = FALSE;
......@@ -1840,6 +1843,7 @@ static void test_WsWriteNode(void)
comment.node.nodeType = WS_XML_NODE_TYPE_COMMENT;
comment.value.bytes = (BYTE *)"comment";
comment.value.length = sizeof("comment") - 1;
comment.value.dictionary = NULL;
hr = WsWriteNode( writer, (const WS_XML_NODE *)&comment, NULL );
ok( hr == S_OK, "got %08x\n", hr );
......@@ -1857,6 +1861,7 @@ static void test_WsWriteNode(void)
utf8.value.bytes = (BYTE *)"cdata";
utf8.value.length = sizeof("cdata") - 1;
utf8.value.dictionary = NULL;
text.node.nodeType = WS_XML_NODE_TYPE_TEXT;
text.text = &utf8.text;
hr = WsWriteNode( writer, (const WS_XML_NODE *)&text, NULL );
......@@ -1868,6 +1873,7 @@ static void test_WsWriteNode(void)
utf8.value.bytes = (BYTE *)"text";
utf8.value.length = sizeof("text") - 1;
utf8.value.dictionary = NULL;
hr = WsWriteNode( writer, (const WS_XML_NODE *)&text, NULL );
ok( hr == S_OK, "got %08x\n", hr );
......@@ -2210,6 +2216,7 @@ static void test_WsWriteText(void)
utf8.text.textType = WS_XML_TEXT_TYPE_UTF8;
utf8.value.bytes = (BYTE *)"test";
utf8.value.length = 4;
utf8.value.dictionary = NULL;
hr = WsWriteText( writer, &utf8.text, NULL );
todo_wine ok( hr == WS_E_INVALID_FORMAT, "got %08x\n", hr );
......
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