From 3328ad6eb977b5e0d0208d71f4cbca7ea4400138 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Wed, 5 Dec 2007 16:09:58 +0000 Subject: [PATCH] ole32: Initialise object variable in RunningObjectTableImpl_GetObject. As per the rules for memory in RPC, the memory pointer to by object will be used during unmarshalling and previously it was uninitialised. (Thanks to Dan Kegel and his Valgrind runs for reporting this.) --- dlls/ole32/moniker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/moniker.c b/dlls/ole32/moniker.c index c4975b94104..cbb89e5d69c 100644 --- a/dlls/ole32/moniker.c +++ b/dlls/ole32/moniker.c @@ -693,7 +693,7 @@ RunningObjectTableImpl_GetObject( IRunningObjectTable* iface, { RunningObjectTableImpl *This = (RunningObjectTableImpl *)iface; MonikerComparisonData *moniker_data; - InterfaceData *object; + InterfaceData *object = NULL; IrotCookie cookie; HRESULT hr; struct rot_entry *rot_entry;