From cef0db194ef45387fa20e5a8a00393c6b2ff142d Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 5 Dec 2009 21:33:31 +0000 Subject: [PATCH] [EX] - Fix calculation of PCR pointer from PRCB pointer svn path=/trunk/; revision=44424 --- reactos/ntoskrnl/ex/sysinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/ex/sysinfo.c b/reactos/ntoskrnl/ex/sysinfo.c index c0637d5e0c0..94ab5b8ba3d 100644 --- a/reactos/ntoskrnl/ex/sysinfo.c +++ b/reactos/ntoskrnl/ex/sysinfo.c @@ -1253,7 +1253,7 @@ QSI_DEF(SystemInterruptInformation) 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