mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
- Fix another issue with Portcls release build -- move an assignment outside ASSERT, and ASSERTify the return value by using a local variable
svn path=/trunk/; revision=39730
This commit is contained in:
parent
dcc1744ad9
commit
49d00ffaaa
1 changed files with 3 additions and 1 deletions
|
@ -145,6 +145,7 @@ IPortFilterWaveCyclic_fnDeviceIoControl(
|
|||
PIO_STACK_LOCATION IoStack;
|
||||
ISubdevice *SubDevice = NULL;
|
||||
SUBDEVICE_DESCRIPTOR * Descriptor;
|
||||
NTSTATUS Status;
|
||||
#if defined(DBG)
|
||||
IPortFilterWaveCyclicImpl * This = (IPortFilterWaveCyclicImpl *)iface;
|
||||
#endif
|
||||
|
@ -154,7 +155,8 @@ IPortFilterWaveCyclic_fnDeviceIoControl(
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue