From 7c5f639cb86fba26a3b96d9dd0798fd3da2150a0 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sun, 31 May 2015 17:51:52 +0300 Subject: [PATCH] ole32: Initialize returned value for disconnected case too in proxy_manager_get_remunknown() (Coverity). --- dlls/ole32/marshal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/ole32/marshal.c b/dlls/ole32/marshal.c index c5c2023088..cc8d6fe4fd 100644 --- a/dlls/ole32/marshal.c +++ b/dlls/ole32/marshal.c @@ -1045,8 +1045,11 @@ static HRESULT proxy_manager_get_remunknown(struct proxy_manager * This, IRemUnk IRemUnknown_AddRef(*remunk); } else if (!This->parent) + { /* disconnected - we can't create IRemUnknown */ + *remunk = NULL; hr = S_FALSE; + } else { STDOBJREF stdobjref;