[PATCH] oleaut32: ITypeInfo_ReleaseFuncDesc_Proxy handle NULL parameter
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Fri Aug 28 03:25:26 CDT 2020
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/oleaut32/usrmarshal.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/oleaut32/usrmarshal.c b/dlls/oleaut32/usrmarshal.c
index 163b48f6f4..07dabde174 100644
--- a/dlls/oleaut32/usrmarshal.c
+++ b/dlls/oleaut32/usrmarshal.c
@@ -1905,6 +1905,9 @@ void CALLBACK ITypeInfo_ReleaseFuncDesc_Proxy(
SHORT param;
TRACE("(%p, %p)\n", This, pFuncDesc);
+ if (!pFuncDesc)
+ return;
+
for(param = 0; param < pFuncDesc->cParams; param++)
free_embedded_elemdesc(pFuncDesc->lprgelemdescParam + param);
if(param)
--
2.28.0
More information about the wine-devel
mailing list