Author: tkreuzer Date: Thu Apr 1 07:44:09 2010 New Revision: 46638
URL: http://svn.reactos.org/svn/reactos?rev=46638&view=rev Log: [WIN32K] Just dereference the PDEV's surface and let the driver free it.
Modified: branches/reactos-yarotows/subsystems/win32/win32k/eng/pdevobj.c
Modified: branches/reactos-yarotows/subsystems/win32/win32k/eng/pdevobj.c URL: http://svn.reactos.org/svn/reactos/branches/reactos-yarotows/subsystems/win3... ============================================================================== --- branches/reactos-yarotows/subsystems/win32/win32k/eng/pdevobj.c [iso-8859-1] (original) +++ branches/reactos-yarotows/subsystems/win32/win32k/eng/pdevobj.c [iso-8859-1] Thu Apr 1 07:44:09 2010 @@ -57,10 +57,11 @@ /* Check if references are left */ if (ppdev->cPdevRefs == 0) { - /* Release surface */ + /* Do we have a surface? */ if(ppdev->pSurface) { - SURFACE_FreeSurface(ppdev->pSurface); + /* Release the surface and let the driver free it */ + SURFACE_ShareUnlockSurface(ppdev->pSurface); ppdev->pfn.DisableSurface(ppdev->dhpdev); }