From 44f06398e2a54d8bb163f8e7faa5adac6b32a1d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Mon, 15 Jul 2024 11:39:08 +0200 Subject: [PATCH] [NTOS:FSTUB] Fix old-annotations for the *IoReadPartitionTable* routines --- ntoskrnl/fstub/disksup.c | 4 ++-- ntoskrnl/fstub/fstubex.c | 2 +- ntoskrnl/include/internal/hal.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ntoskrnl/fstub/disksup.c b/ntoskrnl/fstub/disksup.c index a27b8c35b8d..0903ffbbbf2 100644 --- a/ntoskrnl/fstub/disksup.c +++ b/ntoskrnl/fstub/disksup.c @@ -1768,7 +1768,7 @@ FASTCALL xHalIoReadPartitionTable(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN BOOLEAN ReturnRecognizedPartitions, - IN OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer) + OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer) { KEVENT Event; IO_STATUS_BLOCK IoStatusBlock; @@ -2697,7 +2697,7 @@ FASTCALL IoReadPartitionTable(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN BOOLEAN ReturnRecognizedPartitions, - IN OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer) + OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer) { return HALDISPATCH->HalIoReadPartitionTable(DeviceObject, SectorSize, diff --git a/ntoskrnl/fstub/fstubex.c b/ntoskrnl/fstub/fstubex.c index da965535aba..0ef2a04ae7e 100644 --- a/ntoskrnl/fstub/fstubex.c +++ b/ntoskrnl/fstub/fstubex.c @@ -2277,7 +2277,7 @@ Cleanup: NTSTATUS NTAPI IoReadPartitionTableEx(IN PDEVICE_OBJECT DeviceObject, - IN PDRIVE_LAYOUT_INFORMATION_EX* DriveLayout) + OUT PDRIVE_LAYOUT_INFORMATION_EX* DriveLayout) { NTSTATUS Status; PDISK_INFORMATION Disk; diff --git a/ntoskrnl/include/internal/hal.h b/ntoskrnl/include/internal/hal.h index d7e0e47b57d..2b2e89ca5bd 100644 --- a/ntoskrnl/include/internal/hal.h +++ b/ntoskrnl/include/internal/hal.h @@ -31,7 +31,7 @@ FASTCALL xHalIoReadPartitionTable(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN BOOLEAN ReturnRecognizedPartitions, - IN OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer); + OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer); NTSTATUS FASTCALL