From e409675f98a2ed6ef852d1e2119915ad889dee1d Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Tue, 20 Feb 2024 16:16:32 +0100 Subject: [PATCH] Always use RtlSetMemory() to fill a buffer with a specified pattern --- xtoskrnl/ar/i686/procsup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtoskrnl/ar/i686/procsup.c b/xtoskrnl/ar/i686/procsup.c index 99856cd..f2652c5 100644 --- a/xtoskrnl/ar/i686/procsup.c +++ b/xtoskrnl/ar/i686/procsup.c @@ -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);