Xcode....
[reactos.git] / reactos / ntoskrnl / io / pnpmgr / plugplay.c
index 492d4a1..9c01544 100644 (file)
@@ -98,7 +98,7 @@ IopRemovePlugPlayEvent(VOID)
     /* Remove a pnp event entry from the tail of the queue */
     if (!IsListEmpty(&IopPnpEventQueueHead))
     {
-        ExFreePool(RemoveTailList(&IopPnpEventQueueHead));
+        ExFreePool(CONTAINING_RECORD(RemoveTailList(&IopPnpEventQueueHead), PNP_EVENT_ENTRY, ListEntry));
     }
 
     /* Signal the next pnp event in the queue */