Dmitry Timoshkov : xmllite/tests: Fix stack corruption in 64-bit builds.

Alexandre Julliard julliard at winehq.org
Mon Feb 10 13:06:55 CST 2014


Module: wine
Branch: master
Commit: 42e681e31df84c508cac9cbae2b436dad1c777d7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=42e681e31df84c508cac9cbae2b436dad1c777d7

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Mon Feb 10 12:43:09 2014 +0900

xmllite/tests: Fix stack corruption in 64-bit builds.

---

 dlls/xmllite/tests/reader.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/xmllite/tests/reader.c b/dlls/xmllite/tests/reader.c
index 1f3d306..5774400 100644
--- a/dlls/xmllite/tests/reader.c
+++ b/dlls/xmllite/tests/reader.c
@@ -233,12 +233,12 @@ static const char *type_to_str(XmlNodeType type)
 static void test_read_state_(IXmlReader *reader, XmlReadState expected,
                              XmlReadState exp_broken, BOOL todo, int line)
 {
-    XmlReadState state;
+    LONG_PTR state;
     HRESULT hr;
     BOOL broken_state;
 
     state = -1; /* invalid value */
-    hr = IXmlReader_GetProperty(reader, XmlReaderProperty_ReadState, (LONG_PTR*)&state);
+    hr = IXmlReader_GetProperty(reader, XmlReaderProperty_ReadState, &state);
     ok_(__FILE__, line)(hr == S_OK, "Expected S_OK, got %08x\n", hr);
 
     if (exp_broken == -1)




More information about the wine-cvs mailing list