mirror of
https://github.com/reactos/reactos.git
synced 2024-07-05 04:06:22 +00:00
More specific error messages. More correct according to winetests.
svn path=/trunk/; revision=34828
This commit is contained in:
parent
27fab2e256
commit
43bf5f1b02
|
@ -255,9 +255,9 @@ NpfsCreate(PDEVICE_OBJECT DeviceObject,
|
||||||
if (ClientCcb->Data)
|
if (ClientCcb->Data)
|
||||||
ExFreePool(ClientCcb->Data);
|
ExFreePool(ClientCcb->Data);
|
||||||
KeUnlockMutex(&Fcb->CcbListLock);
|
KeUnlockMutex(&Fcb->CcbListLock);
|
||||||
Irp->IoStatus.Status = STATUS_PIPE_BUSY;
|
Irp->IoStatus.Status = STATUS_OBJECT_PATH_NOT_FOUND;
|
||||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
return STATUS_PIPE_BUSY;
|
return STATUS_OBJECT_PATH_NOT_FOUND;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -368,9 +368,9 @@ NpfsCreateNamedPipe(PDEVICE_OBJECT DeviceObject,
|
||||||
{
|
{
|
||||||
DPRINT("Out of instances.\n");
|
DPRINT("Out of instances.\n");
|
||||||
ExFreePool(Ccb);
|
ExFreePool(Ccb);
|
||||||
Irp->IoStatus.Status = STATUS_PIPE_BUSY;
|
Irp->IoStatus.Status = STATUS_INSTANCE_NOT_AVAILABLE;
|
||||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
return STATUS_PIPE_BUSY;
|
return STATUS_INSTANCE_NOT_AVAILABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: Check pipe modes also! */
|
/* FIXME: Check pipe modes also! */
|
||||||
|
|
Loading…
Reference in a new issue