Let KeGetCurrentProcessorControlBlock() use CurrentPrcb field and correct comments

此提交包含在:
2023-11-13 15:36:50 +01:00
父節點 1d9a79736a
當前提交 fc85e0674b
共有 2 個檔案被更改,包括 11 行新增4 行删除

查看文件

@@ -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)