[NTDLL:LDR] SAL improvements and fixes

- Convert some notations to SAL2
- "Name" parameter in LdrGetProcedureAddress/LdrpGetProcedureAddress should be optional
- "DllCharacteristics" parameter in LdrGetDllHandle should be optional
This commit is contained in:
Ratin Gao 2023-10-03 18:28:05 +08:00 committed by Timo Kreuzer
parent 46b4b5581d
commit be5c889cdf
6 changed files with 63 additions and 39 deletions

View file

@ -89,8 +89,8 @@ NTSTATUS
NTAPI
LdrGetProcedureAddress(
_In_ PVOID BaseAddress,
_In_ PANSI_STRING Name,
_In_ ULONG Ordinal,
_In_opt_ _When_(Ordinal == 0, _Notnull_) PANSI_STRING Name,
_In_opt_ _When_(Name == NULL, _In_range_(>, 0)) ULONG Ordinal,
_Out_ PVOID *ProcedureAddress
);