From 1f4ef448de06148d5025e99557b075015f37650a Mon Sep 17 00:00:00 2001 From: Ratin Gao Date: Fri, 1 Nov 2024 18:53:28 +0800 Subject: [PATCH] [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,