From 35356002e66c112a4005a97a31862e08005d8686 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Fri, 15 Apr 2005 16:11:29 +0000 Subject: [PATCH] Zero out an invalidated runningObjectTableInstance pointer. --- dlls/ole32/moniker.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/ole32/moniker.c b/dlls/ole32/moniker.c index 5485099751f..951e8f545e3 100644 --- a/dlls/ole32/moniker.c +++ b/dlls/ole32/moniker.c @@ -70,7 +70,7 @@ typedef struct RunningObjectTableImpl{ } RunningObjectTableImpl; -RunningObjectTableImpl* runningObjectTableInstance=0; +static RunningObjectTableImpl* runningObjectTableInstance = NULL; /* IRunningObjectTable prototype functions : */ /* IUnknown functions*/ @@ -153,7 +153,7 @@ ULONG WINAPI RunningObjectTableImpl_AddRef(IRunningObjectTable* iface) /*********************************************************************** * RunningObjectTable_Initialize */ -HRESULT WINAPI RunningObjectTableImpl_Destroy() +HRESULT WINAPI RunningObjectTableImpl_Destroy(void) { TRACE("()\n"); @@ -165,6 +165,7 @@ HRESULT WINAPI RunningObjectTableImpl_Destroy() /* free the ROT structure memory */ HeapFree(GetProcessHeap(),0,runningObjectTableInstance); + runningObjectTableInstance = NULL; return S_OK; }