Fix inserting LDEVOBJs into the list. Hopefully fixes CORE-7574

svn path=/trunk/; revision=61006
This commit is contained in:
Timo Kreuzer 2013-11-16 10:33:56 +00:00
parent 13edc1476d
commit 40075496b4

View file

@ -186,7 +186,6 @@ LDEVOBJ_bLoadImage(
Status = ZwSetSystemInformation(SystemLoadGdiDriverInformation, Status = ZwSetSystemInformation(SystemLoadGdiDriverInformation,
pDriverInfo, pDriverInfo,
sizeof(SYSTEM_GDI_DRIVER_INFORMATION)); sizeof(SYSTEM_GDI_DRIVER_INFORMATION));
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
ERR("Failed to load a GDI driver: '%wZ', Status = 0x%lx\n", ERR("Failed to load a GDI driver: '%wZ', Status = 0x%lx\n",
@ -424,6 +423,8 @@ EngLoadImageEx(
/* Insert the LDEV into the global list */ /* Insert the LDEV into the global list */
pldev->pldevPrev = NULL; pldev->pldevPrev = NULL;
pldev->pldevNext = gpldevHead; pldev->pldevNext = gpldevHead;
if (gpldevHead)
gpldevHead->pldevPrev = pldev;
gpldevHead = pldev; gpldevHead = pldev;
} }