Author: greatlrd
Date: Fri Apr 27 23:11:22 2007
New Revision: 26546
URL:
http://svn.reactos.org/svn/reactos?rev=26546&view=rev
Log:
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.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/callback.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/callback.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/callback.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/callback.c Fri Apr 27 23:11:22 2007
@@ -195,8 +195,16 @@
&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();