- Set Handle to NULL so we don't try to close it later

svn path=/branches/aicom-network-fixes/; revision=35741
This commit is contained in:
Cameron Gutman 2008-08-29 01:08:55 +00:00
parent 906dfdd979
commit 976fe9f031

View file

@ -136,7 +136,8 @@ static NTSTATUS TdiOpenDevice(
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));