projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acb0c26
)
Set the ownership before locking the bitmap in EngCreateDeviceSurface, because GDIOBJ...
author
Hartmut Birr
<osexpert@googlemail.com>
Sat, 3 Sep 2005 17:40:33 +0000
(17:40 +0000)
committer
Hartmut Birr
<osexpert@googlemail.com>
Sat, 3 Sep 2005 17:40:33 +0000
(17:40 +0000)
This may fix bug 747.
svn path=/trunk/; revision=17621
reactos/subsys/win32k/eng/surface.c
patch
|
blob
|
history
diff --git
a/reactos/subsys/win32k/eng/surface.c
b/reactos/subsys/win32k/eng/surface.c
index
72945c2
..
c1a2589
100644
(file)
--- a/
reactos/subsys/win32k/eng/surface.c
+++ b/
reactos/subsys/win32k/eng/surface.c
@@
-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;