summaryrefslogtreecommitdiff
path: root/audio/sysvad/common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/sysvad/common.cpp')
-rw-r--r--audio/sysvad/common.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/audio/sysvad/common.cpp b/audio/sysvad/common.cpp
index bccef495..f88ca093 100644
--- a/audio/sysvad/common.cpp
+++ b/audio/sysvad/common.cpp
@@ -39,6 +39,7 @@ Abstract:
#include "UsbHsDevice.h"
#endif // SYSVAD_USB_SIDEBAND
+
//-----------------------------------------------------------------------------
// CSaveData statics
//-----------------------------------------------------------------------------
@@ -56,6 +57,7 @@ class BthHfpDevice; // Forward declaration.
class UsbHsDevice; // Forward declaration.
#endif // SYSVAD_USB_SIDEBAND
+
///////////////////////////////////////////////////////////////////////////////
// CAdapterCommon
//
@@ -297,6 +299,7 @@ class CAdapterCommon :
);
#endif // SYSVAD_USB_SIDEBAND
+
STDMETHODIMP_(VOID) Cleanup();
STDMETHODIMP_(NTSTATUS) UpdatePowerRelations(_In_ PIRP Irp);
@@ -391,6 +394,7 @@ class CAdapterCommon :
#endif // SYSVAD_USB_SIDEBAND
+
private:
LIST_ENTRY m_SubdeviceCache;
@@ -725,6 +729,7 @@ Return Value:
m_UsbSidebandEnableCleanup = FALSE;
#endif // SYSVAD_USB_SIDEBAND
+
m_pServiceGroupWave = NULL;
m_pDeviceObject = DeviceObject;
m_pPhysicalDeviceObject = NULL;
@@ -2291,6 +2296,7 @@ CAdapterCommon::Cleanup()
CleanupUsbSideband();
#endif // SYSVAD_USB_SIDEBAND
+
EmptySubdeviceCache();
}
@@ -2373,6 +2379,7 @@ CAdapterCommon::UpdatePowerRelations(_In_ PIRP Irp)
PSysVadPowerRelationsDo powerDepDo = CONTAINING_RECORD(pe, SysVadPowerRelationsDo, ListEntry);
pe = pe->Flink;
+#pragma prefast(suppress: __WARNING_BUFFER_OVERFLOW, "the access to newRelation->Objects is in-range")
newRelations->Objects[newRelations->Count] = powerDepDo->Pdo;
// Add a reference on the PDO before returning it as a dependency.
@@ -4051,6 +4058,7 @@ Cleanup the USB Sideband environment.
}
#endif // SYSVAD_USB_SIDEBAND
+
#pragma code_seg("PAGE")
NTSTATUS
CopyRegistryValues(HANDLE _hSourceKey, HANDLE _hDestinationKey)