Author: sginsberg
Date: Tue Feb 24 01:40:53 2009
New Revision: 39730
URL:
http://svn.reactos.org/svn/reactos?rev=39730&view=rev
Log:
- Fix another issue with Portcls release build -- move an assignment outside ASSERT, and
ASSERTify the return value by using a local variable
Modified:
trunk/reactos/drivers/wdm/audio/backpln/portcls/filter_wavecyclic.c
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/filter_wavecyclic.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/filter_wavecyclic.c [iso-8859-1]
(original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/filter_wavecyclic.c [iso-8859-1] Tue
Feb 24 01:40:53 2009
@@ -145,6 +145,7 @@
PIO_STACK_LOCATION IoStack;
ISubdevice *SubDevice = NULL;
SUBDEVICE_DESCRIPTOR * Descriptor;
+ NTSTATUS Status;
#if defined(DBG)
IPortFilterWaveCyclicImpl * This = (IPortFilterWaveCyclicImpl *)iface;
#endif
@@ -154,7 +155,8 @@
ASSERT(This->Port->lpVtbl->QueryInterface(This->Port,
&IID_ISubdevice, (PVOID*)&SubDevice) == STATUS_SUCCESS);
ASSERT(SubDevice != NULL);
- ASSERT(SubDevice->lpVtbl->GetDescriptor(SubDevice, &Descriptor) ==
STATUS_SUCCESS);
+ Status = SubDevice->lpVtbl->GetDescriptor(SubDevice, &Descriptor);
+ ASSERT(Status == STATUS_SUCCESS);
ASSERT(Descriptor != NULL);
SubDevice->lpVtbl->Release(SubDevice);