[PORTCLS]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Sat, 12 Dec 2009 13:27:05 +0000 (13:27 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Sat, 12 Dec 2009 13:27:05 +0000 (13:27 +0000)
- Fix possible dereferencing of null pointer
- Found by Amine Khaldi

svn path=/trunk/; revision=44545

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

index 45e11cf..5be3f45 100644 (file)
@@ -484,7 +484,7 @@ DumpFilterDescriptor(
                     RtlStringFromGUID(*EventItem->Set, &GuidString);
                     DPRINT1("EventIndex %u GUID %S Id %u Flags %x\n", Index, GuidString.Buffer, EventItem->Id, EventItem->Flags);
 
-                    EventItem = (PPCEVENT_ITEM)((ULONG_PTR)EventItem + FilterDescription->AutomationTable->EventItemSize);
+                    EventItem = (PPCEVENT_ITEM)((ULONG_PTR)EventItem + NodeDescriptor->AutomationTable->EventItemSize);
                 }
 
             }