[PATCH 2/4] scrrun: Use same write implementation for pipe stream.
Nikolay Sivov
nsivov at codeweavers.com
Sun Feb 20 08:09:15 CST 2022
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/scrrun/filesystem.c | 6 ++++--
dlls/scrrun/tests/filesystem.c | 2 --
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/scrrun/filesystem.c b/dlls/scrrun/filesystem.c
index 0e51929ea54..d7ad255e517 100644
--- a/dlls/scrrun/filesystem.c
+++ b/dlls/scrrun/filesystem.c
@@ -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)
diff --git a/dlls/scrrun/tests/filesystem.c b/dlls/scrrun/tests/filesystem.c
index 894b6251f34..79af87591ff 100644
--- a/dlls/scrrun/tests/filesystem.c
+++ b/dlls/scrrun/tests/filesystem.c
@@ -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);
--
2.34.1
More information about the wine-devel
mailing list