Author: tkreuzer Date: Tue Feb 17 15:28:22 2009 New Revision: 39654
URL: http://svn.reactos.org/svn/reactos?rev=39654&view=rev Log: co_IntCallHookProc: Don't dereference the ResultPointer returned from KeUserModeCallback and then probe the LRESULT cast to PVOID, but probe the ResultPointer. Fixes bug #4114 See issue #4114 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/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/callback.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/callback.c [iso-8859-1] Tue Feb 17 15:28:22 2009 @@ -495,9 +495,7 @@
_SEH2_TRY { - ProbeForRead((PVOID)*(LRESULT*)ResultPointer, - sizeof(LRESULT), - 1); + ProbeForRead(ResultPointer, sizeof(LRESULT), 1); /* Simulate old behaviour: copy into our local buffer */ Result = *(LRESULT*)ResultPointer; }