[ros-diffs] [tkreuzer] 44523: Fix usage of PEB::KernelCallbacktable. It's a PVOID.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Thu Dec 10 21:22:34 CET 2009


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/ntdll/dispatch/dispatch.c?rev=44523&r1=44522&r2=44523&view=diff
==============================================================================
--- 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));
 }




More information about the Ros-diffs mailing list