mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
- Print a message to the debug log if ZwClose returns STATUS_INVALID_HANDLE
- This message will only after "cont"ing past the bugcheck and will hopefully help me track down bug 4796 svn path=/trunk/; revision=42775
This commit is contained in:
parent
3263e1f67a
commit
ca5c8b53bf
1 changed files with 12 additions and 2 deletions
|
@ -233,10 +233,20 @@ AfdCloseSocket(PDEVICE_OBJECT DeviceObject, PIRP Irp,
|
|||
ObDereferenceObject(FCB->AddressFile.Object);
|
||||
|
||||
if( FCB->AddressFile.Handle != INVALID_HANDLE_VALUE )
|
||||
ZwClose(FCB->AddressFile.Handle);
|
||||
{
|
||||
if (ZwClose(FCB->AddressFile.Handle) == STATUS_INVALID_HANDLE)
|
||||
{
|
||||
DbgPrint("INVALID ADDRESS FILE HANDLE VALUE: %x %x\n", FCB->AddressFile.Handle, FCB->AddressFile.Object);
|
||||
}
|
||||
}
|
||||
|
||||
if( FCB->Connection.Handle != INVALID_HANDLE_VALUE )
|
||||
ZwClose(FCB->Connection.Handle);
|
||||
{
|
||||
if (ZwClose(FCB->Connection.Handle) == STATUS_INVALID_HANDLE)
|
||||
{
|
||||
DbgPrint("INVALID CONNECTION HANDLE VALUE: %x %x\n", FCB->Connection.Handle, FCB->Connection.Object);
|
||||
}
|
||||
}
|
||||
|
||||
if( FCB->TdiDeviceName.Buffer )
|
||||
ExFreePool(FCB->TdiDeviceName.Buffer);
|
||||
|
|
Loading…
Reference in a new issue