mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 04:08:29 +00:00
- Set Buffer pointer to NULL on failure.
svn path=/trunk/; revision=39479
This commit is contained in:
parent
6c864fe996
commit
f5a1c37e1b
|
@ -253,7 +253,10 @@ NpfsCreate(PDEVICE_OBJECT DeviceObject,
|
|||
/* Not found, bail out with error for FILE_OPEN requests. */
|
||||
DPRINT("No listening server CCB found!\n");
|
||||
if (ClientCcb->Data)
|
||||
{
|
||||
ExFreePool(ClientCcb->Data);
|
||||
ClientCcb->Data = NULL;
|
||||
}
|
||||
KeUnlockMutex(&Fcb->CcbListLock);
|
||||
Irp->IoStatus.Status = STATUS_OBJECT_PATH_NOT_FOUND;
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
|
|
Loading…
Reference in a new issue