[win32k]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sat, 27 Oct 2012 18:06:10 +0000 (18:06 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sat, 27 Oct 2012 18:06:10 +0000 (18:06 +0000)
- 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

reactos/win32ss/user/ntuser/object.c

index 8117363..375e3bf 100644 (file)
@@ -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;
 }