Always use RtlSetMemory() to fill a buffer with a specified pattern
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 23s
Builds / ExectOS (i686) (push) Successful in 28s

This commit is contained in:
Rafal Kupiec 2024-02-20 16:16:32 +01:00
parent 477e56e294
commit e409675f98
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -365,7 +365,7 @@ VOID
ArpInitializeTss(IN PKPROCESSOR_BLOCK ProcessorBlock)
{
/* Clear I/O map */
RtlFillMemory(ProcessorBlock->TssBase->IoMaps[0].IoMap, IOPM_FULL_SIZE, 0xFF);
RtlSetMemory(ProcessorBlock->TssBase->IoMaps[0].IoMap, 0xFF, IOPM_FULL_SIZE);
/* Fill Interrupt Direction Maps with zeroes */
RtlZeroMemory(ProcessorBlock->TssBase->IoMaps[0].DirectionMap, IOPM_DIRECTION_MAP_SIZE);