From 6bf6caa69d6beb690227a2da45f940c115eaa0cd Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Thu, 31 Aug 2006 17:19:49 +0100 Subject: [PATCH] ole32: Add a reference to the stream in RPC_StartLocalServer since we release a reference to it when the local server thread dies. --- dlls/ole32/rpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c index 32c8318b449..e7266dc1048 100644 --- a/dlls/ole32/rpc.c +++ b/dlls/ole32/rpc.c @@ -1007,6 +1007,7 @@ void RPC_StartLocalServer(REFCLSID clsid, IStream *stream) lsp->clsid = *clsid; lsp->stream = stream; + IStream_AddRef(stream); thread = CreateThread(NULL, 0, local_server_thread, lsp, 0, &tid); CloseHandle(thread);