[PORTCLS]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 21 Jun 2010 14:25:44 +0000 (14:25 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 21 Jun 2010 14:25:44 +0000 (14:25 +0000)
- Add sanity checks

svn path=/trunk/; revision=47817

reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp

index 0520480..4da9086 100644 (file)
@@ -1222,6 +1222,10 @@ CPortPinWaveCyclic::Init(
     // delay of 10 milisec
     m_Delay = Int32x32To64(10, -10000);
 
+    // sanity checks
+    PC_ASSERT(m_CommonBufferSize);
+    PC_ASSERT(m_CommonBuffer);
+
     Status = m_Stream->SetNotificationFreq(10, &m_FrameSize);
     PC_ASSERT(NT_SUCCESS(Status));
     PC_ASSERT(m_FrameSize);