Author: tkreuzer
Date: Sat Dec 5 22:33:31 2009
New Revision: 44424
URL:
http://svn.reactos.org/svn/reactos?rev=44424&view=rev
Log:
[EX]
- Fix calculation of PCR pointer from PRCB pointer
Modified:
trunk/reactos/ntoskrnl/ex/sysinfo.c
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/sysinfo.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] Sat Dec 5 22:33:31 2009
@@ -1253,7 +1253,7 @@
for (i = 0; i < KeNumberProcessors; i++)
{
Prcb = KiProcessorBlock[i];
- Pcr = CONTAINING_RECORD(Prcb, KPCR, Prcb);
+ Pcr = (PKPCR)CONTAINING_RECORD(Prcb, KIPCR, PrcbData);
#ifdef _M_ARM // This code should probably be done differently
sii->ContextSwitches = Pcr->ContextSwitches;
#else