https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7ffc31554d2134fb552a0…
commit 7ffc31554d2134fb552a06a0c363b5dc903ff7d5
Author: Whindmar Saksit <whindsaks(a)proton.me>
AuthorDate: Sun Dec 17 22:14:45 2023 +0100
Commit: GitHub <noreply(a)github.com>
CommitDate: Sun Dec 17 22:14:45 2023 +0100
[CSCRIPT][WSCRIPT] Implement Sleep (#6146)
---
base/applications/cmdutils/wscript/host.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/base/applications/cmdutils/wscript/host.c
b/base/applications/cmdutils/wscript/host.c
index a61851e22bc..b44064028eb 100644
--- a/base/applications/cmdutils/wscript/host.c
+++ b/base/applications/cmdutils/wscript/host.c
@@ -407,8 +407,16 @@ static HRESULT WINAPI Host_DisconnectObject(IHost *iface, IDispatch
*Object)
static HRESULT WINAPI Host_Sleep(IHost *iface, LONG Time)
{
+#ifdef __REACTOS__
+ UNREFERENCED_PARAMETER(iface);
+ if (Time < 0)
+ return E_INVALIDARG;
+ Sleep(Time);
+ return S_OK;
+#else
WINE_FIXME("(%d)\n", Time);
return E_NOTIMPL;
+#endif
}
static HRESULT WINAPI Host_ConnectObject(IHost *iface, IDispatch *Object, BSTR Prefix)