mirror of
https://github.com/reactos/reactos.git
synced 2025-01-12 09:07:54 +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:
parent
347f002369
commit
8d0e6f5f04
1 changed files with 1 additions and 3 deletions
|
@ -495,9 +495,7 @@ co_IntCallHookProc(INT HookId,
|
||||||
|
|
||||||
_SEH2_TRY
|
_SEH2_TRY
|
||||||
{
|
{
|
||||||
ProbeForRead((PVOID)*(LRESULT*)ResultPointer,
|
ProbeForRead(ResultPointer, sizeof(LRESULT), 1);
|
||||||
sizeof(LRESULT),
|
|
||||||
1);
|
|
||||||
/* Simulate old behaviour: copy into our local buffer */
|
/* Simulate old behaviour: copy into our local buffer */
|
||||||
Result = *(LRESULT*)ResultPointer;
|
Result = *(LRESULT*)ResultPointer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue