ole32: Fix a handle leak in local_server_thread().

This commit is contained in:
Francois Gouget 2011-07-13 00:08:25 +02:00 committed by Alexandre Julliard
parent 8371784ff6
commit b6f28fc70f
1 changed files with 6 additions and 1 deletions

View File

@ -1936,7 +1936,12 @@ static DWORD WINAPI local_server_thread(LPVOID param)
TRACE("marshalling IClassFactory to client\n");
hres = IStream_Stat(pStm,&ststg,STATFLAG_NONAME);
if (hres) return hres;
if (hres)
{
CloseHandle(hPipe);
CloseHandle(pipe_event);
return hres;
}
seekto.u.LowPart = 0;
seekto.u.HighPart = 0;