1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00

uiautomationcore: NULL initialize SAFEARRAY variable passed to IRawElementProviderFragment::GetRuntimeId().

Fixes a crash in Battle.net setup where success is returned but the
variable is not set.

Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
This commit is contained in:
Connor McAdams 2024-05-31 12:06:54 -04:00 committed by Alexandre Julliard
parent 7eeddc3bea
commit 81057913cd

View File

@ -1542,7 +1542,7 @@ static HRESULT uia_provider_get_special_prop_val(struct uia_provider *prov,
case UIA_RuntimeIdPropertyId:
{
IRawElementProviderFragment *elfrag;
SAFEARRAY *sa;
SAFEARRAY *sa = NULL;
LONG lbound;
int val;