Author: jimtabor
Date: Mon Oct 27 02:11:08 2014
New Revision: 65039
URL:
http://svn.reactos.org/svn/reactos?rev=65039&view=rev
Log:
[NtUser]
- Fix default sizes for desktop resources. See CORE-8659.
Modified:
trunk/reactos/win32ss/user/ntuser/desktop.c
Modified: trunk/reactos/win32ss/user/ntuser/desktop.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/deskto…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/desktop.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/desktop.c [iso-8859-1] Mon Oct 27 02:11:08 2014
@@ -24,6 +24,10 @@
IntFreeDesktopHeap(IN PDESKTOP pdesk);
/* GLOBALS *******************************************************************/
+
+/* These can be changed via csrss startup, these are defaults */
+DWORD gdwDesktopSectionSize = 512;
+DWORD gdwNOIOSectionSize = 128; // A guess, for one or more of the first three system
desktops.
/* Currently active desktop */
PDESKTOP gpdeskInputDesktop = NULL;
@@ -1194,7 +1198,7 @@
UserInitializeDesktop(PDESKTOP pdesk, PUNICODE_STRING DesktopName, PWINSTATION_OBJECT
pwinsta)
{
PVOID DesktopHeapSystemBase = NULL;
- ULONG_PTR HeapSize = 400 * 1024;
+ ULONG_PTR HeapSize = gdwDesktopSectionSize * 1024;
SIZE_T DesktopInfoSize;
ULONG i;