winverbs: store devices in order that they are added
[mirror/winof/.git] / core / winverbs / kernel / wv_driver.c
index ee96f19..d532160 100644 (file)
@@ -486,7 +486,7 @@ static NTSTATUS WvPowerD0Entry(WDFDEVICE Device, WDF_POWER_DEVICE_STATE Previous
 \r
        KeAcquireGuardedMutex(&Lock);\r
        create = IsListEmpty(&DevList);\r
-       InsertHeadList(&DevList, &dev->Entry);\r
+       InsertTailList(&DevList, &dev->Entry);\r
        KeReleaseGuardedMutex(&Lock);\r
 \r
        if (create) {\r