https://git.reactos.org/?p=reactos.git;a=commitdiff;h=47303268e1da2acb27651d...
commit 47303268e1da2acb27651d175eeff97363c12e4a Author: Oleg Dubinskiy oleg.dubinskij2013@yandex.ua AuthorDate: Thu Aug 1 23:37:35 2019 +0300 Commit: Mark Jansen mark.jansen@reactos.org CommitDate: Sat Aug 3 14:55:57 2019 +0200
[USBAUDIO] Fix compilation issues --- drivers/usb/usbaudio/filter.c | 2 -- drivers/usb/usbaudio/pin.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/usb/usbaudio/filter.c b/drivers/usb/usbaudio/filter.c index 040dbcb0801..69e61e77af7 100644 --- a/drivers/usb/usbaudio/filter.c +++ b/drivers/usb/usbaudio/filter.c @@ -326,7 +326,6 @@ CountTopologyComponents( PUSB_AUDIO_CONTROL_INPUT_TERMINAL_DESCRIPTOR InputTerminalDescriptor; PUSB_AUDIO_CONTROL_FEATURE_UNIT_DESCRIPTOR FeatureUnitDescriptor; PUSB_AUDIO_CONTROL_MIXER_UNIT_DESCRIPTOR MixerUnitDescriptor; - PUSB_AUDIO_CONTROL_SELECTOR_UNIT_DESCRIPTOR SelectorUnitDescriptor; ULONG NodeCount = 0, Length, Index; ULONG DescriptorCount = 0; UCHAR Value; @@ -387,7 +386,6 @@ CountTopologyComponents( } else if (InputTerminalDescriptor->bDescriptorSubtype == 0x05 /* SELECTOR_UNIT */) { - SelectorUnitDescriptor = (PUSB_AUDIO_CONTROL_SELECTOR_UNIT_DESCRIPTOR)InputTerminalDescriptor; DescriptorCount++; NodeCount++; } diff --git a/drivers/usb/usbaudio/pin.c b/drivers/usb/usbaudio/pin.c index a9a7814cf77..350b61375bc 100644 --- a/drivers/usb/usbaudio/pin.c +++ b/drivers/usb/usbaudio/pin.c @@ -697,7 +697,7 @@ InitStreamPin( ULONG GetDataRangeIndexForFormat( IN PKSDATARANGE ConnectionFormat, - IN PKSDATARANGE * DataRanges, + IN const PKSDATARANGE * DataRanges, IN ULONG DataRangesCount) { ULONG Index;