https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d873865971163e045bd2a…
commit d873865971163e045bd2a2924638dd44150a97a0
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Mar 27 00:53:03 2022 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Mar 27 19:38:54 2022 +0200
[SDK:CMLIB] Const-ify the unicode strings that are only used as input and not
modified.
---
sdk/lib/cmlib/cmindex.c | 4 ++--
sdk/lib/cmlib/cmlib.h | 8 ++++----
sdk/lib/cmlib/cmname.c | 6 +++---
sdk/lib/cmlib/cmvalue.c | 2 +-
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/sdk/lib/cmlib/cmindex.c b/sdk/lib/cmlib/cmindex.c
index 599900124d5..0e6ccf04c2a 100644
--- a/sdk/lib/cmlib/cmindex.c
+++ b/sdk/lib/cmlib/cmindex.c
@@ -923,7 +923,7 @@ NTAPI
CmpAddToLeaf(IN PHHIVE Hive,
IN HCELL_INDEX LeafCell,
IN HCELL_INDEX NewKey,
- IN PUNICODE_STRING Name)
+ IN PCUNICODE_STRING Name)
{
PCM_KEY_INDEX Leaf;
PCM_KEY_FAST_INDEX FastLeaf;
@@ -1265,7 +1265,7 @@ HCELL_INDEX
NTAPI
CmpSelectLeaf(IN PHHIVE Hive,
IN PCM_KEY_NODE KeyNode,
- IN PUNICODE_STRING Name,
+ IN PCUNICODE_STRING Name,
IN HSTORAGE_TYPE Type,
IN PHCELL_INDEX *RootCell)
{
diff --git a/sdk/lib/cmlib/cmlib.h b/sdk/lib/cmlib/cmlib.h
index 6b65b73dc17..e4ae010702e 100644
--- a/sdk/lib/cmlib/cmlib.h
+++ b/sdk/lib/cmlib/cmlib.h
@@ -567,7 +567,7 @@ USHORT
NTAPI
CmpNameSize(
IN PHHIVE Hive,
- IN PUNICODE_STRING Name
+ IN PCUNICODE_STRING Name
);
USHORT
@@ -582,7 +582,7 @@ NTAPI
CmpCopyName(
IN PHHIVE Hive,
OUT PWCHAR Destination,
- IN PUNICODE_STRING Source
+ IN PCUNICODE_STRING Source
);
VOID
@@ -599,7 +599,7 @@ NTAPI
CmpFindNameInList(
IN PHHIVE Hive,
IN PCHILD_LIST ChildList,
- IN PUNICODE_STRING Name,
+ IN PCUNICODE_STRING Name,
OUT PULONG ChildIndex OPTIONAL,
OUT PHCELL_INDEX CellIndex
);
@@ -613,7 +613,7 @@ NTAPI
CmpFindValueByName(
IN PHHIVE Hive,
IN PCM_KEY_NODE KeyNode,
- IN PUNICODE_STRING Name
+ IN PCUNICODE_STRING Name
);
PCELL_DATA
diff --git a/sdk/lib/cmlib/cmname.c b/sdk/lib/cmlib/cmname.c
index b12374023c8..265a86a9216 100644
--- a/sdk/lib/cmlib/cmname.c
+++ b/sdk/lib/cmlib/cmname.c
@@ -20,7 +20,7 @@ USHORT
NTAPI
CmpCopyName(IN PHHIVE Hive,
OUT PWCHAR Destination,
- IN PUNICODE_STRING Source)
+ IN PCUNICODE_STRING Source)
{
ULONG i;
@@ -72,7 +72,7 @@ CmpCopyCompressedName(OUT PWCHAR Destination,
USHORT
NTAPI
CmpNameSize(IN PHHIVE Hive,
- IN PUNICODE_STRING Name)
+ IN PCUNICODE_STRING Name)
{
ULONG i;
@@ -148,7 +148,7 @@ BOOLEAN
NTAPI
CmpFindNameInList(IN PHHIVE Hive,
IN PCHILD_LIST ChildList,
- IN PUNICODE_STRING Name,
+ IN PCUNICODE_STRING Name,
OUT PULONG ChildIndex OPTIONAL,
OUT PHCELL_INDEX CellIndex)
{
diff --git a/sdk/lib/cmlib/cmvalue.c b/sdk/lib/cmlib/cmvalue.c
index 86344a77079..a9c46a9fcdf 100644
--- a/sdk/lib/cmlib/cmvalue.c
+++ b/sdk/lib/cmlib/cmvalue.c
@@ -98,7 +98,7 @@ HCELL_INDEX
NTAPI
CmpFindValueByName(IN PHHIVE Hive,
IN PCM_KEY_NODE KeyNode,
- IN PUNICODE_STRING Name)
+ IN PCUNICODE_STRING Name)
{
HCELL_INDEX CellIndex;