mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
Set the ownership before locking the bitmap in EngCreateDeviceSurface, because GDIOBJ_SetOwnership runs in a dead lock if the object is already locked by the same process.
This may fix bug 747. svn path=/trunk/; revision=17621
This commit is contained in:
@@ -394,6 +394,8 @@ EngCreateDeviceSurface(IN DHSURF dhsurf,
|
||||
if (NewSurface == NULL)
|
||||
return 0;
|
||||
|
||||
GDIOBJ_SetOwnership(NewSurface, NULL);
|
||||
|
||||
BitmapObj = BITMAPOBJ_LockBitmap(NewSurface);
|
||||
if (! BITMAPOBJ_InitBitsLock(BitmapObj))
|
||||
{
|
||||
@@ -403,8 +405,6 @@ EngCreateDeviceSurface(IN DHSURF dhsurf,
|
||||
}
|
||||
SurfObj = &BitmapObj->SurfObj;
|
||||
|
||||
GDIOBJ_SetOwnership(NewSurface, NULL);
|
||||
|
||||
SurfObj->dhsurf = dhsurf;
|
||||
SurfObj->hsurf = NewSurface;
|
||||
SurfObj->sizlBitmap = Size;
|
||||
|
||||
Reference in New Issue
Block a user