From bb5f8cfccb4a716edc2ab6e723b95693ec53f2a1 Mon Sep 17 00:00:00 2001 From: "EUPHORIA-IT\\m.jansen" Date: Sun, 19 Aug 2018 16:13:55 +0200 Subject: [PATCH] [WSHOM.OCX] Zero-initialize timeout and type if they are not set. This should fix buildbot timeouts --- dll/win32/wshom.ocx/shell.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dll/win32/wshom.ocx/shell.c b/dll/win32/wshom.ocx/shell.c index 1aa353a17a3..42310e2a7e1 100644 --- a/dll/win32/wshom.ocx/shell.c +++ b/dll/win32/wshom.ocx/shell.c @@ -1316,6 +1316,12 @@ static HRESULT WINAPI WshShell3_Popup(IWshShell3 *iface, BSTR text, VARIANT *sec if (FAILED(hr)) return hr; } +#ifdef __REACTOS__ + else + { + VariantChangeType(&timeout, &timeout, 0, VT_I4); + } +#endif VariantInit(¶m.type); if (!is_optional_argument(type)) @@ -1324,6 +1330,12 @@ static HRESULT WINAPI WshShell3_Popup(IWshShell3 *iface, BSTR text, VARIANT *sec if (FAILED(hr)) return hr; } +#ifdef __REACTOS__ + else + { + VariantChangeType(¶m.type, ¶m.type, 0, VT_I4); + } +#endif if (is_optional_argument(title)) param.title = *title;