mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
[win32k] EngCreateDeviceBitmap: handle failure of EngLockSurface. Found by Amine.
svn path=/trunk/; revision=42671
This commit is contained in:
@@ -191,6 +191,13 @@ EngCreateDeviceBitmap(IN DHSURF dhsurf,
|
||||
}
|
||||
|
||||
pso = EngLockSurface((HSURF)NewBitmap);
|
||||
if (!pso)
|
||||
{
|
||||
DPRINT1("EngLockSurface failed on newly created bitmap!\n");
|
||||
GreDeleteObject(NewBitmap);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
pso->dhsurf = dhsurf;
|
||||
EngUnlockSurface(pso);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user