[PORTCLS]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Sat, 19 Jun 2010 15:56:09 +0000 (15:56 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Sat, 19 Jun 2010 15:56:09 +0000 (15:56 +0000)
- Check if resource list is provided
- Fixes a crash for irc:igorko

svn path=/trunk/; revision=47807

reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.cpp

index 986ffcf..34e0138 100644 (file)
@@ -251,8 +251,13 @@ CPortWavePci::Init(
 
     // 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))