mirror of
https://github.com/reactos/reactos.git
synced 2024-09-15 07:05:04 +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
|
@ -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…
Reference in a new issue