mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 01:40:36 +00:00
[KS]
- Check if irp was allocated - Unimplement KsPinGetConnectedPinFileObject svn path=/trunk/; revision=42649
This commit is contained in:
parent
3f99bec9f5
commit
d8fa27fec7
2 changed files with 15 additions and 6 deletions
|
@ -1148,6 +1148,13 @@ KsSynchronousIoControlDevice(
|
||||||
/* create the irp */
|
/* create the irp */
|
||||||
Irp = IoBuildDeviceIoControlRequest(IoControl, DeviceObject, InBuffer, InSize, OutBuffer, OutSize, FALSE, &Event, &IoStatusBlock);
|
Irp = IoBuildDeviceIoControlRequest(IoControl, DeviceObject, InBuffer, InSize, OutBuffer, OutSize, FALSE, &Event, &IoStatusBlock);
|
||||||
|
|
||||||
|
if (!Irp)
|
||||||
|
{
|
||||||
|
/* no memory to allocate the irp */
|
||||||
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* HACK */
|
/* HACK */
|
||||||
IoStack = IoGetNextIrpStackLocation(Irp);
|
IoStack = IoGetNextIrpStackLocation(Irp);
|
||||||
IoStack->FileObject = FileObject;
|
IoStack->FileObject = FileObject;
|
||||||
|
|
|
@ -384,16 +384,14 @@ KsPinGetConnectedPinDeviceObject(
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@implemented
|
@unimplemented
|
||||||
*/
|
*/
|
||||||
PFILE_OBJECT
|
PFILE_OBJECT
|
||||||
NTAPI
|
NTAPI
|
||||||
KsPinGetConnectedPinFileObject(
|
KsPinGetConnectedPinFileObject(
|
||||||
IN PKSPIN Pin)
|
IN PKSPIN Pin)
|
||||||
{
|
{
|
||||||
IKsPinImpl * This = (IKsPinImpl*)CONTAINING_RECORD(Pin, IKsPinImpl, Pin);
|
return NULL;
|
||||||
|
|
||||||
return This->FileObject;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1188,8 +1186,12 @@ KspCreatePin(
|
||||||
This->ObjectHeader->Unknown = (PUNKNOWN)&This->lpVtbl;
|
This->ObjectHeader->Unknown = (PUNKNOWN)&This->lpVtbl;
|
||||||
This->ObjectHeader->ObjectType = (PVOID)&This->Pin;
|
This->ObjectHeader->ObjectType = (PVOID)&This->Pin;
|
||||||
|
|
||||||
/* now inform the driver to create a new pin */
|
/* does the driver have a pin dispatch */
|
||||||
Status = Descriptor->Dispatch->Create(&This->Pin, Irp);
|
if (Descriptor->Dispatch && Descriptor->Dispatch->Create)
|
||||||
|
{
|
||||||
|
/* now inform the driver to create a new pin */
|
||||||
|
Status = Descriptor->Dispatch->Create(&This->Pin, Irp);
|
||||||
|
}
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status) && Status != STATUS_PENDING)
|
if (!NT_SUCCESS(Status) && Status != STATUS_PENDING)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue