Author: cgutman
Date: Thu Aug 28 20:08:55 2008
New Revision: 35741
URL:
http://svn.reactos.org/svn/reactos?rev=35741&view=rev
Log:
- Set Handle to NULL so we don't try to close it later
Modified:
branches/aicom-network-fixes/drivers/network/afd/afd/tdi.c
Modified: branches/aicom-network-fixes/drivers/network/afd/afd/tdi.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/afd/afd/tdi.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/afd/afd/tdi.c [iso-8859-1] Thu Aug 28
20:08:55 2008
@@ -136,7 +136,8 @@
NULL); /* Handle
information */
if (!NT_SUCCESS(Status)) {
AFD_DbgPrint(MIN_TRACE, ("ObReferenceObjectByHandle() failed with status
(0x%X).\n", Status));
- ZwClose(*Handle);
+ ZwClose(*Handle);
+ *Handle = NULL;
} else {
AFD_DbgPrint(MAX_TRACE, ("Got handle (0x%X) Object (0x%X)\n",
*Handle, *Object));