Added SAL remark

This commit is contained in:
Benjamin Höglinger-Stelzer 2023-07-02 18:20:57 +02:00
parent 2d435cb689
commit 3692857ffc
3 changed files with 4 additions and 2 deletions

View File

@ -26,6 +26,8 @@ Built for and tested on **Windows 10 version 1507 (or newer) x64/ARM64**. 32-Bit
- APIs not available on older builds will give you a `STATUS_NOT_IMPLEMENTED` instead of hard-linking and therefore making your driver fail to load 🤞
- No conflicts with WDF or DMF
- The consuming driver *may* (but doesn't have to) utilize Microsoft WDF or DMF in addition without having to fear any incompatibilities 💪
- Reliable SAL annotations.
- I made sure to enrich the majority of the code with correct, tested annotations for Code Analysis to help you spot potential accidental API misuse 😎
## How to use

View File

@ -221,7 +221,7 @@ DomitoCalculatePortableExecutableDigest(
_Out_ PUINT32 pDigestCalgOut,
_Out_ PULONG pDigestSizeOut,
_Out_ PVOID* pDigestOut,
_Out_ LPWIN_CERTIFICATE* pCertOut,
_Outptr_result_maybenull_ LPWIN_CERTIFICATE* pCertOut,
_Out_ PULONG pSizeOfSecurityDirectory
);

View File

@ -463,7 +463,7 @@ DomitoCalculatePortableExecutableDigest(
_Out_ PUINT32 pDigestCalgOut,
_Out_ PULONG pDigestSizeOut,
_Out_ PVOID * pDigestOut,
_Out_ LPWIN_CERTIFICATE * pCertOut,
_Outptr_result_maybenull_ LPWIN_CERTIFICATE * pCertOut,
_Out_ PULONG pSizeOfSecurityDirectory
)
{