mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
[WIN32K:NTUSER]
- Don't open-code IoGetRemainingStackSize svn path=/trunk/; revision=69653
This commit is contained in:
parent
9b00fd4ea8
commit
c506de06be
1 changed files with 2 additions and 3 deletions
|
@ -1300,7 +1300,7 @@ co_IntSendMessageTimeoutSingle( HWND hWnd,
|
|||
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 @@ co_IntSendMessageTimeoutSingle( HWND hWnd,
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue