mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:15:41 +00:00
- 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:
parent
906dfdd979
commit
976fe9f031
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue