Author: tkreuzer
Date: Sat May 17 22:33:42 2014
New Revision: 63339
URL:
http://svn.reactos.org/svn/reactos?rev=63339&view=rev
Log:
[WIN32K]
Revert r56462. Should fix some win32k crashes. See CORE-7965
Modified:
trunk/reactos/win32ss/gdi/ntgdi/bitmaps.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/bitmaps.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/bitmaps.…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/bitmaps.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/bitmaps.c [iso-8859-1] Sat May 17 22:33:42 2014
@@ -142,7 +142,7 @@
IN OPTIONAL LPBYTE pUnsafeBits)
{
HBITMAP hbmp;
- ULONG cRealBpp, cjWidthBytes, iFormat, fjBitmap;
+ ULONG cRealBpp, cjWidthBytes, iFormat;
ULONGLONG cjSize;
PSURFACE psurf;
@@ -163,16 +163,13 @@
EngSetLastError(ERROR_INVALID_PARAMETER);
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) */
psurf = SURFACE_AllocSurface(STYPE_BITMAP,
nWidth,
nHeight,
iFormat,
- fjBitmap,
+ 0,
0,
NULL);
if (!psurf)