https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1f4ef448de06148d5025e…
commit 1f4ef448de06148d5025e99557b075015f37650a
Author: Ratin Gao <ratin(a)knsoft.org>
AuthorDate: Fri Nov 1 18:53:28 2024 +0800
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Nov 1 11:53:28 2024 +0100
[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.
---
ntoskrnl/ex/keyedevt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/ex/keyedevt.c b/ntoskrnl/ex/keyedevt.c
index 50678b66ebb..a83a7f6af69 100644
--- a/ntoskrnl/ex/keyedevt.c
+++ b/ntoskrnl/ex/keyedevt.c
@@ -114,7 +114,7 @@ ExpReleaseOrWaitForKeyedEvent(
_Inout_ PEX_KEYED_EVENT KeyedEvent,
_In_ PVOID KeyedWaitValue,
_In_ BOOLEAN Alertable,
- _In_ PLARGE_INTEGER Timeout,
+ _In_opt_ PLARGE_INTEGER Timeout,
_In_ BOOLEAN Release)
{
PETHREAD Thread, CurrentThread;
@@ -242,7 +242,7 @@ ExpWaitForKeyedEvent(
_Inout_ PEX_KEYED_EVENT KeyedEvent,
_In_ PVOID KeyedWaitValue,
_In_ BOOLEAN Alertable,
- _In_ PLARGE_INTEGER Timeout)
+ _In_opt_ PLARGE_INTEGER Timeout)
{
/* Call the generic internal function */
return ExpReleaseOrWaitForKeyedEvent(KeyedEvent,