|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 09/18] Return StoreDirectory results as PZZSTR
StoreDirectory returns a list of NUL-separated names ending with an
empty string, but its Value parameter was a plain PCHAR, so the analyzer
treated the result as a single character. Declare it as PZZSTR.
No functional change.
Signed-off-by: Césaire Mounah <cesaire.mounah@xxxxxxxxxx>
---
src/xencrsh/store.c | 2 +-
src/xencrsh/store.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/xencrsh/store.c b/src/xencrsh/store.c
index aa22465..03c9e2c 100644
--- a/src/xencrsh/store.c
+++ b/src/xencrsh/store.c
@@ -874,7 +874,7 @@ StoreDirectory(
_In_opt_ PXENBUS_STORE_TRANSACTION Transaction,
_In_opt_ PSTR Prefix,
_In_ PSTR Node,
- _Outptr_ PCHAR *Value
+ _Outptr_ PZZSTR *Value
)
{
STORE_REQUEST Request;
diff --git a/src/xencrsh/store.h b/src/xencrsh/store.h
index 7adca20..8468fb8 100644
--- a/src/xencrsh/store.h
+++ b/src/xencrsh/store.h
@@ -78,7 +78,7 @@ StoreDirectory(
_In_opt_ PVOID Transaction,
_In_opt_ PSTR Prefix,
_In_ PSTR Node,
- _Outptr_ PCHAR *Value
+ _Outptr_ PZZSTR *Value
);
NTSTATUS
--
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 |