Author: janderwald
Date: Sat Jun 19 15:56:09 2010
New Revision: 47807
URL:
http://svn.reactos.org/svn/reactos?rev=47807&view=rev
Log:
[PORTCLS]
- Check if resource list is provided
- Fixes a crash for irc:igorko
Modified:
trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.cpp
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.cpp [iso-8859-1]
(original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.cpp [iso-8859-1] Sat Jun
19 15:56:09 2010
@@ -251,8 +251,13 @@
// increment reference on miniport adapter
Miniport->AddRef();
- // increment reference on resource list
- ResourceList->AddRef();
+
+
+ if (ResourceList)
+ {
+ // increment reference on resource list
+ ResourceList->AddRef();
+ }
Status = Miniport->Init(UnknownAdapter, ResourceList, this, &ServiceGroup);
if (!NT_SUCCESS(Status))