[inetcomm]
authorChristoph von Wittich <christoph_vw@reactos.org>
Wed, 23 Dec 2009 11:32:32 +0000 (11:32 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Wed, 23 Dec 2009 11:32:32 +0000 (11:32 +0000)
sync inetcomm with wine 1.1.35

svn path=/trunk/; revision=44730

reactos/dll/win32/inetcomm/internettransport.c
reactos/dll/win32/inetcomm/mimeole.c

index af4772c..dcce0d9 100644 (file)
@@ -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;
index 871ffa5..992949a 100644 (file)
@@ -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;
 }