[ros-diffs] [cgutman] 42775: - 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
cgutman at svn.reactos.org
cgutman at svn.reactos.org
Tue Aug 18 22:43:13 CEST 2009
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/main.c?rev=42775&r1=42774&r2=42775&view=diff
==============================================================================
--- 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);
More information about the Ros-diffs
mailing list