mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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
1 changed files with 4 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
* FILE: ntoskrnl/io/plugplay.c
|
||||
* PURPOSE: Plug-and-play interface routines
|
||||
*
|
||||
* PROGRAMMERS: David Welch (welch@mcmail.com)
|
||||
* PROGRAMMERS: Eric Kohl <eric.kohl@t-online.de>
|
||||
*/
|
||||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
@ -146,7 +146,9 @@ NtGetPlugPlayEvent(IN ULONG Reserved1,
|
|||
}
|
||||
|
||||
/* 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 */
|
||||
if (BufferLength < Entry->Event.TotalSize)
|
||||
|
|
Loading…
Reference in a new issue