Author: janderwald
Date: Fri Aug 21 15:15:38 2009
New Revision: 42825
URL:
http://svn.reactos.org/svn/reactos?rev=42825&view=rev
Log:
- Remove test code
Modified:
trunk/reactos/drivers/wdm/audio/sysaudio/deviface.c
Modified: trunk/reactos/drivers/wdm/audio/sysaudio/deviface.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/sysaudio…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/sysaudio/deviface.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/sysaudio/deviface.c [iso-8859-1] Fri Aug 21 15:15:38
2009
@@ -203,8 +203,6 @@
PIO_WORKITEM WorkItem = NULL;
PSYSAUDIODEVEXT DeviceExtension;
PKSAUDIO_DEVICE_ENTRY DeviceEntry = NULL;
- PDEVICE_OBJECT AudioDeviceObject;
- UNICODE_STRING ReferenceString, SymbolicLinkName;
/* a new device has arrived */
DeviceEntry = ExAllocatePool(NonPagedPool, sizeof(KSAUDIO_DEVICE_ENTRY));
@@ -259,24 +257,6 @@
Ctx->DeviceEntry = DeviceEntry;
Ctx->WorkItem = WorkItem;
-
- /* HACK
- * sysaudio should register the device object for itself
- */
- AudioDeviceObject = IoGetRelatedDeviceObject(DeviceEntry->FileObject);
- RtlInitUnicodeString(&ReferenceString, L"sad0");
- Status = IoRegisterDeviceInterface(AudioDeviceObject, &KSCATEGORY_AUDIO_DEVICE,
&ReferenceString, &SymbolicLinkName);
- if (NT_SUCCESS(Status))
- {
- IoSetDeviceInterfaceState(&SymbolicLinkName, TRUE);
- RtlFreeUnicodeString(&SymbolicLinkName);
- }
- else
- {
- DPRINT1("Failed to open %wZ with Status %x\n",
&DeviceEntry->DeviceName, Status);
- DbgBreakPoint();
-
- }
/* fetch device extension */
DeviceExtension = (PSYSAUDIODEVEXT)DeviceObject->DeviceExtension;