[WSHOM.OCX] Zero-initialize timeout and type if they are not set.
authorEUPHORIA-IT\m.jansen <m.jansen@euphoria-it.nl>
Sun, 19 Aug 2018 14:13:55 +0000 (16:13 +0200)
committerEUPHORIA-IT\m.jansen <m.jansen@euphoria-it.nl>
Sun, 19 Aug 2018 14:14:08 +0000 (16:14 +0200)
This should fix buildbot timeouts

dll/win32/wshom.ocx/shell.c

index 1aa353a..42310e2 100644 (file)
@@ -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(&param.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(&param.type, &param.type, 0, VT_I4);
+    }
+#endif
 
     if (is_optional_argument(title))
         param.title = *title;