Piotr Caban : webservices: Fix WsWriteText test crash on Windows 10.

Alexandre Julliard julliard at winehq.org
Fri Jan 3 15:25:06 CST 2020


Module: wine
Branch: master
Commit: 83a518214d5a76af9a74b39a8f5b07638d553178
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=83a518214d5a76af9a74b39a8f5b07638d553178

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Fri Jan  3 14:31:42 2020 +0100

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 at codeweavers.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/webservices/tests/reader.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/webservices/tests/reader.c b/dlls/webservices/tests/reader.c
index afbc46b83e..70623052de 100644
--- a/dlls/webservices/tests/reader.c
+++ b/dlls/webservices/tests/reader.c
@@ -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;




More information about the wine-cvs mailing list