mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user