|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 1/2] include: Annotate Local as _Out_opt_ in XENBUS_SHARED_INFO_GET_TIME
SharedInfoGetTime() tests Local for NULL before writing it, and callers
pass NULL (SharedInfoGetTimeVersion2() in xenbus, wmi.c in xeniface).
Annotate the parameter as _Out_opt_, as the implementation already does,
and sync the header with the copy in xeniface.
No functional change.
Signed-off-by: Césaire Mounah <cesaire.mounah@xxxxxxxxxx>
---
include/shared_info_interface.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/shared_info_interface.h b/include/shared_info_interface.h
index 5fdedfd..eb9adcb 100644
--- a/include/shared_info_interface.h
+++ b/include/shared_info_interface.h
@@ -139,7 +139,7 @@ typedef VOID
(*XENBUS_SHARED_INFO_GET_TIME)(
_In_ PINTERFACE Interface,
_Out_ PLARGE_INTEGER Time,
- _Out_ PBOOLEAN Local
+ _Out_opt_ PBOOLEAN Local
);
// {7E73C34F-1640-4649-A8F3-263BC930A004}
--
2.55.0.windows.5
--
Césaire Mounah | Vates Windows Guest Tools Engineer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |