Use CONTAINING_RECORD macro instead of type cast, fix the copyright header.
Modified: trunk/reactos/ntoskrnl/io/plugplay.c

Modified: trunk/reactos/ntoskrnl/io/plugplay.c
--- trunk/reactos/ntoskrnl/io/plugplay.c	2005-02-05 05:40:35 UTC (rev 13416)
+++ trunk/reactos/ntoskrnl/io/plugplay.c	2005-02-05 08:43:52 UTC (rev 13417)
@@ -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 @@
   }
 
   /* 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)