mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
take care of NtGdiDdDeleteDirectDrawObject Attempted to lock object 0x8d1f9ad8 that is deleted! problem.
svn path=/trunk/; revision=20019
This commit is contained in:
@@ -210,7 +210,7 @@ DWORD STDCALL NtGdiDdGetDriverInfo(
|
||||
|
||||
if (pDirectDraw == NULL)
|
||||
{
|
||||
DPRINT1("NtGdiDdGetDriverInfo DDHAL_DRIVER_NOTHANDLED\n");
|
||||
DPRINT1("Can not lock DirectDraw handle \n");
|
||||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
@@ -799,7 +799,11 @@ BOOL STDCALL NtGdiDdDeleteSurfaceObject(
|
||||
)
|
||||
{
|
||||
DPRINT1("NtGdiDdDeleteSurfaceObject\n");
|
||||
return GDIOBJ_FreeObj(hSurface, GDI_OBJECT_TYPE_DD_SURFACE);
|
||||
/* FIXME add right GDI_OBJECT_TYPE_ for everthing for now
|
||||
we are using same type */
|
||||
/* return GDIOBJ_FreeObj(hSurface, GDI_OBJECT_TYPE_DD_SURFACE); */
|
||||
return GDIOBJ_FreeObj(hSurface, GDI_OBJECT_TYPE_DIRECTDRAW);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user