[ros-diffs] [cgutman] 35741: - Set Handle to NULL so we don't try to close it later

cgutman at svn.reactos.org cgutman at svn.reactos.org
Fri Aug 29 03:08:56 CEST 2008


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/network/afd/afd/tdi.c?rev=35741&r1=35740&r2=35741&view=diff
==============================================================================
--- 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));



More information about the Ros-diffs mailing list