https://git.reactos.org/?p=reactos.git;a=commitdiff;h=576fafbaf890f08e3da46570c6b4c611ec430008

commit 576fafbaf890f08e3da46570c6b4c611ec430008
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Tue Dec 3 13:03:11 2024 +0100
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Tue Dec 3 13:13:26 2024 +0100

    [FREELDR] peloader.c: Add SAL2 annotations for two import-resolving helpers 
(#7537)
    
    Add annotations for PeLdrpBindImportName()
    and PeLdrpScanImportAddressTable().
---
 boot/freeldr/freeldr/lib/peloader.c | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/boot/freeldr/freeldr/lib/peloader.c 
b/boot/freeldr/freeldr/lib/peloader.c
index fae0bf9b63a..2096792c05e 100644
--- a/boot/freeldr/freeldr/lib/peloader.c
+++ b/boot/freeldr/freeldr/lib/peloader.c
@@ -136,15 +136,15 @@ PeLdrpLoadAndScanReferencedDll(
 
 static BOOLEAN
 PeLdrpBindImportName(
-    IN OUT PLIST_ENTRY ModuleListHead,
-    IN PVOID DllBase,
-    IN PVOID ImageBase,
-    IN PIMAGE_THUNK_DATA ThunkData,
-    IN PIMAGE_EXPORT_DIRECTORY ExportDirectory,
-    IN ULONG ExportSize,
-    IN BOOLEAN ProcessForwards,
-    IN PCSTR DirectoryPath,
-    IN PLIST_ENTRY Parent)
+    _Inout_ PLIST_ENTRY ModuleListHead,
+    _In_ PVOID DllBase,
+    _In_ PVOID ImageBase,
+    _Inout_ PIMAGE_THUNK_DATA ThunkData,
+    _In_ PIMAGE_EXPORT_DIRECTORY ExportDirectory,
+    _In_ ULONG ExportSize,
+    _In_ BOOLEAN ProcessForwards,
+    _In_ PCSTR DirectoryPath,
+    _In_ PLIST_ENTRY Parent)
 {
     ULONG Ordinal;
     PULONG NameTable, FunctionTable;
@@ -448,12 +448,12 @@ PeLdrpLoadAndScanReferencedDll(
 
 static BOOLEAN
 PeLdrpScanImportAddressTable(
-    IN OUT PLIST_ENTRY ModuleListHead,
-    IN PVOID DllBase,
-    IN PVOID ImageBase,
-    IN PIMAGE_THUNK_DATA ThunkData,
-    IN PCSTR DirectoryPath,
-    IN PLIST_ENTRY Parent)
+    _Inout_ PLIST_ENTRY ModuleListHead,
+    _In_ PVOID DllBase,
+    _In_ PVOID ImageBase,
+    _Inout_ PIMAGE_THUNK_DATA ThunkData,
+    _In_ PCSTR DirectoryPath,
+    _In_ PLIST_ENTRY Parent)
 {
     PIMAGE_EXPORT_DIRECTORY ExportDirectory = NULL;
     BOOLEAN Success;

Reply via email to