[ros-diffs] [tkreuzer] 39654: 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.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Tue Feb 17 22:28:22 CET 2009


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/ntuser/callback.c?rev=39654&r1=39653&r2=39654&view=diff
==============================================================================
--- 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;
    }



More information about the Ros-diffs mailing list