mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 03:43:36 +00:00
[win32k]
- Double the size of the user handle table in order to allow the test suite to complete despite the horrible object leaks svn path=/trunk/; revision=57624
This commit is contained in:
@@ -283,11 +283,11 @@ void *get_user_object_handle(PUSER_HANDLE_TABLE ht, HANDLE* handle, USER_OBJECT
|
||||
|
||||
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 @@ BOOL FASTCALL UserCreateHandleTable(VOID)
|
||||
}
|
||||
|
||||
// FIXME: Make auto growable
|
||||
UserInitHandleTable(gHandleTable, mem, sizeof(USER_HANDLE_ENTRY) * 1024*2);
|
||||
UserInitHandleTable(gHandleTable, mem, sizeof(USER_HANDLE_ENTRY) * HandleCount);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user