[ros-diffs] [jgardou] 46573: [WIN32K] Free the surface instead of unlocking it
jgardou at svn.reactos.org
jgardou at svn.reactos.org
Mon Mar 29 21:50:49 CEST 2010
- Previous message: [ros-diffs] [jgardou] 46572: [WIN32K] Implement releasing PDEVOBJs
- Next message: [ros-diffs] [sir_richard] 46574: [HALACPI]: Add project, right now it just builds the normal HAL. The idea is to split the generic HAL into legacy (x86 only) and ACPI (x86+ACPI, or x64). Bus handling, reboot/shutdown, PnP, power management (sleep/resume/hibernate), timer, environment variable, debugging, and initialization code is expected to differ between legacy and ACPI, if not more.
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jgardou
Date: Mon Mar 29 21:50:49 2010
New Revision: 46573
URL: http://svn.reactos.org/svn/reactos?rev=46573&view=rev
Log:
[WIN32K]
Free the surface instead of unlocking 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/win32/win32k/eng/pdevobj.c?rev=46573&r1=46572&r2=46573&view=diff
==============================================================================
--- 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] Mon Mar 29 21:50:49 2010
@@ -52,13 +52,15 @@
/* Decrease reference count */
--ppdev->cPdevRefs;
+ ASSERT(ppdev->cPdevRefs >= 0) ;
+
/* Check if references are left */
if (ppdev->cPdevRefs == 0)
{
/* Release surface */
if(ppdev->pSurface)
{
- SURFACE_ShareUnlockSurface(ppdev->pSurface);
+ SURFACE_FreeSurface(ppdev->pSurface);
ppdev->pfn.DisableSurface(ppdev->dhpdev);
}
- Previous message: [ros-diffs] [jgardou] 46572: [WIN32K] Implement releasing PDEVOBJs
- Next message: [ros-diffs] [sir_richard] 46574: [HALACPI]: Add project, right now it just builds the normal HAL. The idea is to split the generic HAL into legacy (x86 only) and ACPI (x86+ACPI, or x64). Bus handling, reboot/shutdown, PnP, power management (sleep/resume/hibernate), timer, environment variable, debugging, and initialization code is expected to differ between legacy and ACPI, if not more.
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Ros-diffs
mailing list