From e2af57a32d8340b5a9b730e7e0b57864820dfd96 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Wed, 23 Dec 2009 11:32:32 +0000 Subject: [PATCH] [inetcomm] sync inetcomm with wine 1.1.35 svn path=/trunk/; revision=44730 --- reactos/dll/win32/inetcomm/internettransport.c | 6 ++---- reactos/dll/win32/inetcomm/mimeole.c | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/reactos/dll/win32/inetcomm/internettransport.c b/reactos/dll/win32/inetcomm/internettransport.c index af4772c2f88..dcce0d9df17 100644 --- a/reactos/dll/win32/inetcomm/internettransport.c +++ b/reactos/dll/win32/inetcomm/internettransport.c @@ -167,14 +167,12 @@ HRESULT InternetTransport_HandsOffCallback(InternetTransport *This) HRESULT InternetTransport_DropConnection(InternetTransport *This) { - int ret; - if (This->Status == IXP_DISCONNECTED) return IXP_E_NOT_CONNECTED; - ret = shutdown(This->Socket, SD_BOTH); + shutdown(This->Socket, SD_BOTH); - ret = closesocket(This->Socket); + closesocket(This->Socket); DestroyWindow(This->hwnd); This->hwnd = NULL; diff --git a/reactos/dll/win32/inetcomm/mimeole.c b/reactos/dll/win32/inetcomm/mimeole.c index 871ffa502af..992949a44ef 100644 --- a/reactos/dll/win32/inetcomm/mimeole.c +++ b/reactos/dll/win32/inetcomm/mimeole.c @@ -1610,6 +1610,7 @@ static HRESULT create_body_offset_list(IStream *stm, const char *boundary, struc } while(1); end: + HeapFree(GetProcessHeap(), 0, nl_boundary); HeapFree(GetProcessHeap(), 0, buf); return hr; }