Let KeGetCurrentProcessorControlBlock() use CurrentPrcb field and correct comments

Tento commit je obsažen v:
2023-11-13 15:36:50 +01:00
rodič 1d9a79736a
revize fc85e0674b
2 změnil soubory, kde provedl 11 přidání a 4 odebrání

Zobrazit soubor

@@ -35,9 +35,16 @@ XTAPI
PKPROCESSOR_CONTROL_BLOCK
KeGetCurrentProcessorControlBlock(VOID)
{
return (PKPROCESSOR_CONTROL_BLOCK)ArReadFSDualWord(FIELD_OFFSET(KPROCESSOR_BLOCK, Prcb));
return (PKPROCESSOR_CONTROL_BLOCK)ArReadFSDualWord(FIELD_OFFSET(KPROCESSOR_BLOCK, CurrentPrcb));
}
/**
* Gets the current thread running on the currently executing processor.
*
* @return This routine returns the address of the current thread object.
*
* @since NT 3.5
*/
XTAPI
PKTHREAD
KeGetCurrentThread(VOID)