[NTOS:EX] Fix SAL notations, Timeout parameter should be optional (#7482)

Fix warnings:

E:\3rdRepo\ReactOS_Fork4\ntoskrnl\ex\keyedevt.c(458): warning C6387: 'Timeout' could be '0': this does not adhere to the specification for the function 'ExpWaitForKeyedEvent'.
E:\3rdRepo\ReactOS_Fork4\ntoskrnl\ex\keyedevt.c(527): warning C6387: 'Timeout' could be '0': this does not adhere to the specification for the function 'ExpReleaseKeyedEvent'.

JIRA issue: None.

Proposed changes
Timeout parameter of those two functions should be optional.
This commit is contained in:
Ratin Gao 2024-11-01 18:53:28 +08:00 committed by GitHub
parent 9f784c65a2
commit 1f4ef448de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,7 +114,7 @@ ExpReleaseOrWaitForKeyedEvent(
_Inout_ PEX_KEYED_EVENT KeyedEvent, _Inout_ PEX_KEYED_EVENT KeyedEvent,
_In_ PVOID KeyedWaitValue, _In_ PVOID KeyedWaitValue,
_In_ BOOLEAN Alertable, _In_ BOOLEAN Alertable,
_In_ PLARGE_INTEGER Timeout, _In_opt_ PLARGE_INTEGER Timeout,
_In_ BOOLEAN Release) _In_ BOOLEAN Release)
{ {
PETHREAD Thread, CurrentThread; PETHREAD Thread, CurrentThread;
@ -242,7 +242,7 @@ ExpWaitForKeyedEvent(
_Inout_ PEX_KEYED_EVENT KeyedEvent, _Inout_ PEX_KEYED_EVENT KeyedEvent,
_In_ PVOID KeyedWaitValue, _In_ PVOID KeyedWaitValue,
_In_ BOOLEAN Alertable, _In_ BOOLEAN Alertable,
_In_ PLARGE_INTEGER Timeout) _In_opt_ PLARGE_INTEGER Timeout)
{ {
/* Call the generic internal function */ /* Call the generic internal function */
return ExpReleaseOrWaitForKeyedEvent(KeyedEvent, return ExpReleaseOrWaitForKeyedEvent(KeyedEvent,