Commit 0faf9c1f authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

scrrun: Use same write implementation for pipe stream.

parent a9c4bda4
......@@ -791,9 +791,11 @@ static HRESULT WINAPI pipestream_ReadAll(ITextStream *iface, BSTR *text)
static HRESULT WINAPI pipestream_Write(ITextStream *iface, BSTR text)
{
FIXME("%p, %s.\n", iface, debugstr_w(text));
struct textstream *stream = impl_from_ITextStream(iface);
return E_NOTIMPL;
TRACE("%p, %s.\n", iface, debugstr_w(text));
return textstream_write(stream, text);
}
static HRESULT WINAPI pipestream_WriteLine(ITextStream *iface, BSTR text)
......
......@@ -2656,11 +2656,9 @@ static void test_DoOpenPipeStream(void)
{
str = SysAllocString(L"data");
hr = ITextStream_Write(stream_write, str);
todo_wine
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
hr = ITextStream_Write(stream_read, str);
todo_wine
ok(hr == CTL_E_BADFILEMODE, "Unexpected hr %#lx.\n", hr);
SysFreeString(str);
......
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