mirror of
https://github.com/reactos/reactos.git
synced 2024-09-14 06:42:52 +00:00
Use CONTAINING_RECORD macro instead of type cast, fix the copyright header.
svn path=/trunk/; revision=13417
This commit is contained in:
parent
41918c7577
commit
92a1779473
|
@ -5,7 +5,7 @@
|
||||||
* FILE: ntoskrnl/io/plugplay.c
|
* FILE: ntoskrnl/io/plugplay.c
|
||||||
* PURPOSE: Plug-and-play interface routines
|
* PURPOSE: Plug-and-play interface routines
|
||||||
*
|
*
|
||||||
* PROGRAMMERS: David Welch (welch@mcmail.com)
|
* PROGRAMMERS: Eric Kohl <eric.kohl@t-online.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
@ -146,7 +146,9 @@ NtGetPlugPlayEvent(IN ULONG Reserved1,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get entry from the tail of the queue */
|
/* Get entry from the tail of the queue */
|
||||||
Entry = (PPNP_EVENT_ENTRY)IopPnpEventQueueHead.Blink;
|
Entry = CONTAINING_RECORD(IopPnpEventQueueHead.Blink,
|
||||||
|
PNP_EVENT_ENTRY,
|
||||||
|
ListEntry);
|
||||||
|
|
||||||
/* Check the buffer size */
|
/* Check the buffer size */
|
||||||
if (BufferLength < Entry->Event.TotalSize)
|
if (BufferLength < Entry->Event.TotalSize)
|
||||||
|
|
Loading…
Reference in a new issue