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.

svn path=/trunk/; revision=39654
This commit is contained in:
Timo Kreuzer 2009-02-17 21:28:22 +00:00
parent 347f002369
commit 8d0e6f5f04

View file

@ -495,9 +495,7 @@ co_IntCallHookProc(INT HookId,
_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;
}