Nikolay Sivov : wshom: Implement standard streams properties for Exec object.
Alexandre Julliard
julliard at winehq.org
Mon Feb 21 16:15:12 CST 2022
Module: wine
Branch: master
Commit: 1128970a757a4b31a531e7c9178a44acec78bbfa
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1128970a757a4b31a531e7c9178a44acec78bbfa
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sun Feb 20 17:09:17 2022 +0300
wshom: Implement standard streams properties for Exec object.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=38210
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wshom.ocx/shell.c | 27 ++++++++++++++++++---------
1 file changed, 18 insertions(+), 9 deletions(-)
diff --git a/dlls/wshom.ocx/shell.c b/dlls/wshom.ocx/shell.c
index d1942c73cea..e04844458b1 100644
--- a/dlls/wshom.ocx/shell.c
+++ b/dlls/wshom.ocx/shell.c
@@ -230,29 +230,38 @@ static HRESULT WINAPI WshExec_get_Status(IWshExec *iface, WshExecStatus *status)
static HRESULT WINAPI WshExec_get_StdIn(IWshExec *iface, ITextStream **stream)
{
- WshExecImpl *This = impl_from_IWshExec(iface);
+ WshExecImpl *exec = impl_from_IWshExec(iface);
- FIXME("(%p)->(%p): stub\n", This, stream);
+ TRACE("%p, %p.\n", iface, stream);
- return E_NOTIMPL;
+ *stream = exec->stdin_stream;
+ ITextStream_AddRef(*stream);
+
+ return S_OK;
}
static HRESULT WINAPI WshExec_get_StdOut(IWshExec *iface, ITextStream **stream)
{
- WshExecImpl *This = impl_from_IWshExec(iface);
+ WshExecImpl *exec = impl_from_IWshExec(iface);
- FIXME("(%p)->(%p): stub\n", This, stream);
+ TRACE("%p, %p.\n", iface, stream);
- return E_NOTIMPL;
+ *stream = exec->stdout_stream;
+ ITextStream_AddRef(*stream);
+
+ return S_OK;
}
static HRESULT WINAPI WshExec_get_StdErr(IWshExec *iface, ITextStream **stream)
{
- WshExecImpl *This = impl_from_IWshExec(iface);
+ WshExecImpl *exec = impl_from_IWshExec(iface);
- FIXME("(%p)->(%p): stub\n", This, stream);
+ TRACE("%p, %p.\n", iface, stream);
- return E_NOTIMPL;
+ *stream = exec->stderr_stream;
+ ITextStream_AddRef(*stream);
+
+ return S_OK;
}
static HRESULT WINAPI WshExec_get_ProcessID(IWshExec *iface, DWORD *pid)
More information about the wine-cvs
mailing list