Fixes a crash in Battle.net setup where success is returned but the variable is not set.
From: Connor McAdams cmcadams@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@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;