Author: tkreuzer
Date: Thu Dec 10 13:39:54 2009
New Revision: 44523
URL:
http://svn.reactos.org/svn/reactos?rev=44523&view=rev
Log:
Fix usage of PEB::KernelCallbacktable. It's a PVOID.
Modified:
branches/ros-amd64-bringup/reactos/dll/ntdll/dispatch/dispatch.c
Modified: branches/ros-amd64-bringup/reactos/dll/ntdll/dispatch/dispatch.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/n…
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/ntdll/dispatch/dispatch.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/dll/ntdll/dispatch/dispatch.c [iso-8859-1] Thu Dec
10 13:39:54 2009
@@ -79,8 +79,8 @@
ULONG ArgumentLength)
{
/* Return with the result of the callback function */
+ USER_CALL *KernelCallbackTable = NtCurrentPeb()->KernelCallbackTable;
ZwCallbackReturn(NULL,
0,
- ((USER_CALL)(NtCurrentPeb()->KernelCallbackTable[Index]))
- (Argument, ArgumentLength));
+ KernelCallbackTable[Index](Argument, ArgumentLength));
}