Author: janderwald
Date: Sat Dec 12 14:27:05 2009
New Revision: 44545
URL:
http://svn.reactos.org/svn/reactos?rev=44545&view=rev
Log:
[PORTCLS]
- Fix possible dereferencing of null pointer
- Found by Amine Khaldi
Modified:
trunk/reactos/drivers/wdm/audio/backpln/portcls/undoc.cpp
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/undoc.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/undoc.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/undoc.cpp [iso-8859-1] Sat Dec 12
14:27:05 2009
@@ -484,7 +484,7 @@
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);
}
}