static content_handler_test *expectCall;
static ISAXLocator *locator;
-static const char *debugstr_wn(const WCHAR *szStr, int len)
-{
- static char buf[1024];
- WideCharToMultiByte(CP_ACP, 0, szStr, len, buf, sizeof(buf), NULL, NULL);
- return buf;
-}
-
static void test_saxstr(unsigned line, const WCHAR *szStr, int nStr, const char *szTest)
{
WCHAR buf[1024];
MultiByteToWideChar(CP_ACP, 0, szTest, -1, buf, sizeof(buf)/sizeof(WCHAR));
ok_(__FILE__,line) (!memcmp(szStr, buf, len*sizeof(WCHAR)), "unexpected szStr %s, expected %s\n",
- debugstr_wn(szStr, nStr), szTest);
+ wine_dbgstr_wn(szStr, nStr), szTest);
}
static BOOL test_expect_call(CH id)
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
test_expect_call(CH_ENDTEST);
+ VariantClear(&var);
+
SADim[0].lLbound= 0;
SADim[0].cElements= sizeof(szTestXML)-1;
pSA = SafeArrayCreate(VT_UI1, 1, SADim);
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
test_expect_call(CH_ENDTEST);
+ VariantClear(&var);
+
file = CreateFileA(testXmlA, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
ok(file != INVALID_HANDLE_VALUE, "Could not create file: %u\n", GetLastError());
WriteFile(file, szTestXML, sizeof(szTestXML)-1, &bytesWritten, NULL);
IXMLDOMDocument_Release(domDocument);
ISAXXMLReader_Release(reader);
+ SysFreeString(bstrData);
}
START_TEST(saxreader)