Nikolay Sivov : scrrun: Use same write implementation for pipe stream.

Alexandre Julliard julliard at winehq.org
Mon Feb 21 16:15:12 CST 2022


Module: wine
Branch: master
Commit: 0faf9c1f065fb220827fef31a3567739bc43097d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0faf9c1f065fb220827fef31a3567739bc43097d

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Feb 20 17:09:15 2022 +0300

scrrun: Use same write implementation for pipe stream.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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);




More information about the wine-cvs mailing list