Commit d77acecb authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msxml3: Implement IXMLDOMDocument2 IPersistStream_Save.

parent 5bedc409
...@@ -357,8 +357,26 @@ static HRESULT WINAPI xmldoc_IPersistStream_Load( ...@@ -357,8 +357,26 @@ static HRESULT WINAPI xmldoc_IPersistStream_Load(
static HRESULT WINAPI xmldoc_IPersistStream_Save( static HRESULT WINAPI xmldoc_IPersistStream_Save(
IPersistStream *iface, LPSTREAM pStm, BOOL fClearDirty) IPersistStream *iface, LPSTREAM pStm, BOOL fClearDirty)
{ {
FIXME("(%p, %p, %d): stub!\n", iface, pStm, fClearDirty); domdoc *This = impl_from_IPersistStream(iface);
return E_NOTIMPL; 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( static HRESULT WINAPI xmldoc_IPersistStream_GetSizeMax(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment