Module: wine Branch: master Commit: 753b5b3582d466eb766618ed5e14cbc88369b60d URL: https://gitlab.winehq.org/wine/wine/-/commit/753b5b3582d466eb766618ed5e14cbc...
Author: Sven Baars sbaars@codeweavers.com Date: Fri Jul 28 15:59:27 2023 +0200
uiautomationcore: Fix a sizeof() argument (Coverity).
---
dlls/uiautomationcore/uia_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/uiautomationcore/uia_utils.c b/dlls/uiautomationcore/uia_utils.c index 8e034916397..2b6f42fa520 100644 --- a/dlls/uiautomationcore/uia_utils.c +++ b/dlls/uiautomationcore/uia_utils.c @@ -169,7 +169,7 @@ static HRESULT uia_condition_clone(struct UiaCondition **dst, struct UiaConditio { case ConditionType_True: case ConditionType_False: - if (!(*dst = heap_alloc_zero(sizeof(*dst)))) + if (!(*dst = heap_alloc_zero(sizeof(**dst)))) return E_OUTOFMEMORY;
(*dst)->ConditionType = src->ConditionType;