mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
[WIN32K]
Revert r56462. Should fix some win32k crashes. See CORE-7965 svn path=/trunk/; revision=63339
This commit is contained in:
parent
5e5f4c1d14
commit
1a918ac33b
|
@ -142,7 +142,7 @@ NtGdiCreateBitmap(
|
||||||
IN OPTIONAL LPBYTE pUnsafeBits)
|
IN OPTIONAL LPBYTE pUnsafeBits)
|
||||||
{
|
{
|
||||||
HBITMAP hbmp;
|
HBITMAP hbmp;
|
||||||
ULONG cRealBpp, cjWidthBytes, iFormat, fjBitmap;
|
ULONG cRealBpp, cjWidthBytes, iFormat;
|
||||||
ULONGLONG cjSize;
|
ULONGLONG cjSize;
|
||||||
PSURFACE psurf;
|
PSURFACE psurf;
|
||||||
|
|
||||||
|
@ -164,15 +164,12 @@ NtGdiCreateBitmap(
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allocations larger than PAGE_SIZE go into user mem */
|
|
||||||
fjBitmap = (cjSize > PAGE_SIZE) ? BMF_USERMEM : 0;
|
|
||||||
|
|
||||||
/* Allocate the surface (but don't set the bits) */
|
/* Allocate the surface (but don't set the bits) */
|
||||||
psurf = SURFACE_AllocSurface(STYPE_BITMAP,
|
psurf = SURFACE_AllocSurface(STYPE_BITMAP,
|
||||||
nWidth,
|
nWidth,
|
||||||
nHeight,
|
nHeight,
|
||||||
iFormat,
|
iFormat,
|
||||||
fjBitmap,
|
0,
|
||||||
0,
|
0,
|
||||||
NULL);
|
NULL);
|
||||||
if (!psurf)
|
if (!psurf)
|
||||||
|
|
Loading…
Reference in a new issue