mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 10:12:58 +00:00
[TCPIP]
[FORMATTING] Backup copy and formatting. svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52381
This commit is contained in:
parent
c2770feda9
commit
4b7e0f11d0
16 changed files with 527 additions and 441 deletions
|
@ -256,6 +256,8 @@ NTSTATUS FileOpenAddress(
|
|||
}
|
||||
|
||||
RtlZeroMemory(AddrFile, sizeof(ADDRESS_FILE));
|
||||
DbgPrint("[TCPIP, FileOpenAddress] Allocated AddressFile = 0x%x, sizeof(ADDRESS_FILE) = %d\n",
|
||||
AddrFile, sizeof(ADDRESS_FILE));
|
||||
|
||||
AddrFile->RefCount = 1;
|
||||
AddrFile->Free = AddrFileFree;
|
||||
|
@ -395,19 +397,23 @@ NTSTATUS FileCloseAddress(
|
|||
|
||||
LockObject(AddrFile, &OldIrql);
|
||||
|
||||
DbgPrint("[TCPIP, FileCloseAddress] AddrFile->RefCount = %d before TCPClose\n", AddrFile->RefCount);
|
||||
|
||||
/* We have to close this listener because we started it */
|
||||
if ( AddrFile->Listener )
|
||||
{
|
||||
AddrFile->Listener->AddressFile = NULL;
|
||||
|
||||
//DbgPrint("[TCPIP, FileCloseAddress] Calling TCPClose( 0x%x )\n", AddrFile->Listener);
|
||||
TCPClose( AddrFile->Listener );
|
||||
}
|
||||
|
||||
DbgPrint("[TCPIP, FileCloseAddress] AddrFile->RefCount = %d\n", AddrFile->RefCount);
|
||||
|
||||
UnlockObject(AddrFile, OldIrql);
|
||||
|
||||
DereferenceObject(AddrFile);
|
||||
|
||||
DbgPrint("[TCPIP, FileCloseAddress] AddrFile->RefCount = %d after TCPClose\n", AddrFile->RefCount);
|
||||
|
||||
TI_DbgPrint(MAX_TRACE, ("Leaving.\n"));
|
||||
DbgPrint("[TCPIP, FileCloseAddress] Leaving\n");
|
||||
|
||||
|
@ -440,6 +446,7 @@ NTSTATUS FileOpenConnection(
|
|||
|
||||
Status = TCPSocket( Connection, AF_INET, SOCK_STREAM, IPPROTO_TCP );
|
||||
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DereferenceObject( Connection );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue