mirror of
https://github.com/reactos/reactos.git
synced 2024-08-03 18:10:54 +00:00
[WIN32K]
Fix inserting LDEVOBJs into the list. Hopefully fixes CORE-7574 svn path=/trunk/; revision=61006
This commit is contained in:
parent
13edc1476d
commit
40075496b4
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue