[PATCH 0/1] MR5768: uiautomationcore: NULL initialize SAFEARRAY variable passed to...
Fixes a crash in Battle.net setup where success is returned but the variable is not set. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5768
From: Connor McAdams <cmcadams(a)codeweavers.com> Fixes a crash in Battle.net setup where success is returned but the variable is not set. Signed-off-by: Connor McAdams <cmcadams(a)codeweavers.com> --- dlls/uiautomationcore/uia_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/uiautomationcore/uia_client.c b/dlls/uiautomationcore/uia_client.c index df9b2b283e0..8d1e3c8c7dc 100644 --- a/dlls/uiautomationcore/uia_client.c +++ b/dlls/uiautomationcore/uia_client.c @@ -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; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/5768
participants (2)
-
Connor McAdams -
Connor McAdams (@cmcadams)