mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:56:00 +00:00
[WSHOM.OCX] Zero-initialize timeout and type if they are not set.
This should fix buildbot timeouts
This commit is contained in:
parent
a8cf35d0e4
commit
bb5f8cfccb
1 changed files with 12 additions and 0 deletions
|
@ -1316,6 +1316,12 @@ static HRESULT WINAPI WshShell3_Popup(IWshShell3 *iface, BSTR text, VARIANT *sec
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
else
|
||||||
|
{
|
||||||
|
VariantChangeType(&timeout, &timeout, 0, VT_I4);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
VariantInit(¶m.type);
|
VariantInit(¶m.type);
|
||||||
if (!is_optional_argument(type))
|
if (!is_optional_argument(type))
|
||||||
|
@ -1324,6 +1330,12 @@ static HRESULT WINAPI WshShell3_Popup(IWshShell3 *iface, BSTR text, VARIANT *sec
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
else
|
||||||
|
{
|
||||||
|
VariantChangeType(¶m.type, ¶m.type, 0, VT_I4);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (is_optional_argument(title))
|
if (is_optional_argument(title))
|
||||||
param.title = *title;
|
param.title = *title;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue