patch by hto.

Fixing the crash in win32k after user-mode callback
 Some forget use seh. all user mode param shall always be using seh. 
See issue #2212 for more details.

svn path=/trunk/; revision=26546
This commit is contained in:
Magnus Olsen 2007-04-27 19:11:22 +00:00
parent 253fa4b7a0
commit 039e4a7b2e

View file

@ -195,8 +195,16 @@ co_IntCallWindowProc(WNDPROC Proc,
&ResultPointer,
&ResultLength);
/* Simulate old behaviour: copy into our local buffer */
RtlMoveMemory(Arguments, ResultPointer, ArgumentLength);
_SEH_TRY
{
/* Simulate old behaviour: copy into our local buffer */
RtlMoveMemory(Arguments, ResultPointer, ArgumentLength);
}
_SEH_HANDLE
{
Status = _SEH_GetExceptionCode();
}
_SEH_END;
UserEnterCo();