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

oldstable
Dmitry Timoshkov 2014-02-10 12:43:09 +09:00 committed by Alexandre Julliard
parent cdd932a060
commit 42e681e31d
1 changed files with 2 additions and 2 deletions

View File

@ -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)