Author: gadamopoulos
Date: Sat Oct 27 18:06:10 2012
New Revision: 57624
URL: http://svn.reactos.org/svn/reactos?rev=57624&view=rev
Log:
[win32k]
- Double the size of the user handle table in order to allow the test suite to complete despite the horrible object leaks
Modified:
trunk/reactos/win32ss/user/ntuser/object.c
Modified: trunk/reactos/win32ss/user/ntuser/object.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/object…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/object.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/object.c [iso-8859-1] Sat Oct 27 18:06:10 2012
@@ -283,11 +283,11 @@
BOOL FASTCALL UserCreateHandleTable(VOID)
{
-
PVOID mem;
+ INT HandleCount = 1024 * 4;
// FIXME: Don't alloc all at once! Must be mapped into umode also...
- mem = UserHeapAlloc(sizeof(USER_HANDLE_ENTRY) * 1024*2);
+ mem = UserHeapAlloc(sizeof(USER_HANDLE_ENTRY) * HandleCount);
if (!mem)
{
ERR("Failed creating handle table\n");
@@ -303,7 +303,7 @@
}
// FIXME: Make auto growable
- UserInitHandleTable(gHandleTable, mem, sizeof(USER_HANDLE_ENTRY) * 1024*2);
+ UserInitHandleTable(gHandleTable, mem, sizeof(USER_HANDLE_ENTRY) * HandleCount);
return TRUE;
}