From 35ca95482701225f9e1c274cf0431428902b1e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger-Stelzer?= Date: Sun, 18 Jun 2023 11:25:03 +0200 Subject: [PATCH] Fixed SAL annotations --- Snippets/WDM/GetProcAddress.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Snippets/WDM/GetProcAddress.md b/Snippets/WDM/GetProcAddress.md index c3f41a3..895d7a8 100644 --- a/Snippets/WDM/GetProcAddress.md +++ b/Snippets/WDM/GetProcAddress.md @@ -75,7 +75,7 @@ _IRQL_requires_max_(PASSIVE_LEVEL) NTSTATUS FindDriverBaseAddress( _In_ STRING ModuleName, - _Inout_ PVOID* ModuleBase + _Inout_opt_ PVOID* ModuleBase ); _Success_(return == STATUS_SUCCESS) @@ -85,7 +85,7 @@ NTSTATUS FindExportedFunctionAddress( _In_ PVOID ModuleBase, _In_ STRING FunctionName, - _Inout_ PVOID* FunctionAddress + _Inout_opt_ PVOID* FunctionAddress ); ``` @@ -105,7 +105,7 @@ _IRQL_requires_max_(PASSIVE_LEVEL) NTSTATUS FindDriverBaseAddress( _In_ STRING ModuleName, - _Inout_ PVOID* ModuleBase + _Inout_opt_ PVOID* ModuleBase ) { ULONG bufferSize = 0; @@ -186,7 +186,7 @@ NTSTATUS FindExportedFunctionAddress( _In_ PVOID ModuleBase, _In_ STRING FunctionName, - _Inout_ PVOID* FunctionAddress + _Inout_opt_ PVOID* FunctionAddress ) { NTSTATUS status = STATUS_NOT_FOUND;