Author: cgutman
Date: Tue Aug 18 22:43:13 2009
New Revision: 42775
URL:
http://svn.reactos.org/svn/reactos?rev=42775&view=rev
Log:
- 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
Modified:
trunk/reactos/drivers/network/afd/afd/main.c
Modified: trunk/reactos/drivers/network/afd/afd/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/ma…
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/main.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/afd/main.c [iso-8859-1] Tue Aug 18 22:43:13 2009
@@ -233,10 +233,20 @@
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);