webservices: Fix WsWriteText test crash on Windows 10.

The tests crashes on my system when utf8.value.dictionary != NULL.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2020-01-03 14:31:42 +01:00 committed by Alexandre Julliard
parent 4c58a2311a
commit 83a518214d

View file

@ -2215,6 +2215,7 @@ static void test_WsMoveReader(void)
hr = WsWriteStartElement( writer, NULL, &localname2, &ns, NULL );
ok( hr == S_OK, "got %08x\n", hr );
memset(&utf8, 0, sizeof(utf8));
utf8.text.textType = WS_XML_TEXT_TYPE_UTF8;
utf8.value.bytes = (BYTE *)"test";
utf8.value.length = sizeof("test") - 1;