- Set KSCREATE_ITEM_WILDCARD flag to receive all requests in one handler
-- 
Kmixer is now back accessible

svn path=/trunk/; revision=41886
This commit is contained in:
Johannes Anderwald 2009-07-11 13:52:36 +00:00
parent 6181543561
commit 76d872ed01

View file

@ -201,7 +201,7 @@ DispatchCreateKMix(
if (Buffer) if (Buffer)
{ {
/* is the request for a new pin */ /* is the request for a new pin */
if (!wcsstr(KS_NAME_PIN, Buffer)) if (wcsstr(Buffer, KS_NAME_PIN))
{ {
Status = CreatePin(Irp); Status = CreatePin(Irp);
@ -254,6 +254,7 @@ KMixAllocateDeviceHeader(
/* initialize create item struct */ /* initialize create item struct */
RtlZeroMemory(CreateItem, sizeof(KSOBJECT_CREATE_ITEM)); RtlZeroMemory(CreateItem, sizeof(KSOBJECT_CREATE_ITEM));
CreateItem->Create = DispatchCreateKMix; CreateItem->Create = DispatchCreateKMix;
CreateItem->Flags = KSCREATE_ITEM_WILDCARD;
RtlInitUnicodeString(&CreateItem->ObjectClass, L"KMixer"); RtlInitUnicodeString(&CreateItem->ObjectClass, L"KMixer");
Status = KsAllocateDeviceHeader(&DeviceExtension->KsDeviceHeader, Status = KsAllocateDeviceHeader(&DeviceExtension->KsDeviceHeader,