https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5d8964331131f40be6eb7…
commit 5d8964331131f40be6eb748f02378b929508a476
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Thu Nov 12 01:22:46 2020 +0100
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Sat May 1 11:26:07 2021 +0200
[NTOS:OB] ObQueryDeviceMapInformation(): Fix annotations
---
ntoskrnl/include/internal/ob.h | 6 +++---
ntoskrnl/ob/devicemap.c | 7 ++++---
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/ntoskrnl/include/internal/ob.h b/ntoskrnl/include/internal/ob.h
index 2ecd936d536..87a5d6901f0 100644
--- a/ntoskrnl/include/internal/ob.h
+++ b/ntoskrnl/include/internal/ob.h
@@ -299,9 +299,9 @@ ObpSetHandleAttributes(
NTSTATUS
NTAPI
ObQueryDeviceMapInformation(
- IN PEPROCESS Process,
- OUT PPROCESS_DEVICEMAP_INFORMATION DeviceMapInfo,
- IN ULONG Flags
+ _In_opt_ PEPROCESS Process,
+ _Out_ PPROCESS_DEVICEMAP_INFORMATION DeviceMapInfo,
+ _In_ ULONG Flags
);
//
diff --git a/ntoskrnl/ob/devicemap.c b/ntoskrnl/ob/devicemap.c
index 0c54f6995b8..866ef66482d 100644
--- a/ntoskrnl/ob/devicemap.c
+++ b/ntoskrnl/ob/devicemap.c
@@ -536,9 +536,10 @@ ObInheritDeviceMap(IN PEPROCESS Parent,
NTSTATUS
NTAPI
-ObQueryDeviceMapInformation(IN PEPROCESS Process,
- IN PPROCESS_DEVICEMAP_INFORMATION DeviceMapInfo,
- IN ULONG Flags)
+ObQueryDeviceMapInformation(
+ _In_opt_ PEPROCESS Process,
+ _Out_ PPROCESS_DEVICEMAP_INFORMATION DeviceMapInfo,
+ _In_ ULONG Flags)
{
PDEVICE_MAP DeviceMap = NULL, GlobalDeviceMap;
BOOLEAN Dereference;