- 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:
Cameron Gutman 2009-08-18 20:43:13 +00:00
parent 3263e1f67a
commit ca5c8b53bf

View file

@ -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);