msxml3: Implement IXMLDOMDocument2 IPersistStream_Save.

This commit is contained in:
Alistair Leslie-Hughes 2009-01-22 20:21:45 +11:00 committed by Alexandre Julliard
parent 5bedc409d5
commit d77acecbff
1 changed files with 20 additions and 2 deletions

View File

@ -357,8 +357,26 @@ static HRESULT WINAPI xmldoc_IPersistStream_Load(
static HRESULT WINAPI xmldoc_IPersistStream_Save(
IPersistStream *iface, LPSTREAM pStm, BOOL fClearDirty)
{
FIXME("(%p, %p, %d): stub!\n", iface, pStm, fClearDirty);
return E_NOTIMPL;
domdoc *This = impl_from_IPersistStream(iface);
HRESULT hr;
BSTR xmlString;
TRACE("(%p, %p, %d)\n", iface, pStm, fClearDirty);
hr = IXMLDOMNode_get_xml( This->node, &xmlString );
if(hr == S_OK)
{
DWORD count;
DWORD len = strlenW(xmlString) * sizeof(WCHAR);
hr = IStream_Write( pStm, xmlString, len, &count );
SysFreeString(xmlString);
}
TRACE("ret 0x%08x\n", hr);
return hr;
}
static HRESULT WINAPI xmldoc_IPersistStream_GetSizeMax(