Author: tfaber
Date: Fri Oct 23 10:34:44 2015
New Revision: 69653
URL:
http://svn.reactos.org/svn/reactos?rev=69653&view=rev
Log:
[WIN32K:NTUSER]
- Don't open-code IoGetRemainingStackSize
Modified:
trunk/reactos/win32ss/user/ntuser/message.c
Modified: trunk/reactos/win32ss/user/ntuser/message.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/messag…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/message.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/message.c [iso-8859-1] Fri Oct 23 10:34:44 2015
@@ -1300,7 +1300,7 @@
INT lParamBufferSize;
LPARAM lParamPacked;
PTHREADINFO Win32Thread, ptiSendTo = NULL;
- ULONG_PTR Hi, Lo, Result = 0;
+ ULONG_PTR Result = 0;
DECLARE_RETURN(LRESULT);
USER_REFERENCE_ENTRY Ref;
BOOL DoCallBack = TRUE;
@@ -1348,9 +1348,8 @@
if ( Window->state & WNDS_SERVERSIDEWINDOWPROC )
{
TRACE("SMT: Server Side Window Procedure\n");
- IoGetStackLimits(&Lo, &Hi);
// Handle it here. Safeguard against excessive recursions.
- if (((ULONG_PTR)&uResult - Lo) < 4096 )
+ if (IoGetRemainingStackSize() < PAGE_SIZE)
{
ERR("Server Callback Exceeded Stack!\n");
RETURN( FALSE);