[WIN32K:ENG]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 24 Apr 2017 16:28:04 +0000 (16:28 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 24 Apr 2017 16:28:04 +0000 (16:28 +0000)
- In PDEVOBJ_vRefreshModeList, restore the current mode pointer, ppdev->pdmwDev, to a valid value.
CORE-13097 #resolve

svn path=/trunk/; revision=74404

reactos/win32ss/gdi/eng/pdevobj.c

index 5847f3b..64d1832 100644 (file)
@@ -293,6 +293,8 @@ PDEVOBJ_vRefreshModeList(
         DPRINT1("FIXME: EngpPopulateDeviceModeList failed, we just destroyed a perfectly good mode list\n");
     }
 
         DPRINT1("FIXME: EngpPopulateDeviceModeList failed, we just destroyed a perfectly good mode list\n");
     }
 
+    ppdev->pdmwDev = pGraphicsDevice->pDevModeList[pGraphicsDevice->iCurrentMode].pdm;
+
     /* Unlock PDEV */
     EngReleaseSemaphore(ppdev->hsemDevLock);
 }
     /* Unlock PDEV */
     EngReleaseSemaphore(ppdev->hsemDevLock);
 }