Author: janderwald
Date: Mon Jun 21 14:25:44 2010
New Revision: 47817
URL:
http://svn.reactos.org/svn/reactos?rev=47817&view=rev
Log:
[PORTCLS]
- Add sanity checks
Modified:
trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp [iso-8859-1]
(original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp [iso-8859-1] Mon
Jun 21 14:25:44 2010
@@ -1222,6 +1222,10 @@
// 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);