Author: janderwald
Date: Sat Jan 7 15:42:53 2012
New Revision: 54861
URL:
http://svn.reactos.org/svn/reactos?rev=54861&view=rev
Log:
[WDMAUD]
- Improve error check
Modified:
trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c
Modified: trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/legacy/w…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c [iso-8859-1] Sat Jan 7
15:42:53 2012
@@ -334,7 +334,7 @@
return SetIrpIoStatus(Irp, STATUS_INVALID_PARAMETER, 0);
}
- if (!IoStack->FileObject)
+ if (!IoStack->FileObject || !IoStack->FileObject->FsContext)
{
/* file object parameter */
DPRINT1("Error: file object is not attached\n");