Module: wine Branch: master Commit: 81057913cd6073bfbd9665d0d96f453c3dd5e995 URL: https://gitlab.winehq.org/wine/wine/-/commit/81057913cd6073bfbd9665d0d96f453...
Author: Connor McAdams cmcadams@codeweavers.com Date: Fri May 31 12:06:54 2024 -0400
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
---
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;