Skip to content

Commit

Permalink
[SDK:CMLIB] Const-ify the unicode strings that are only used as input…
Browse files Browse the repository at this point in the history
… and not modified.
  • Loading branch information
HBelusca committed Mar 27, 2022
1 parent a6da36e commit d873865
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions sdk/lib/cmlib/cmindex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
{
Expand Down
8 changes: 4 additions & 4 deletions sdk/lib/cmlib/cmlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ USHORT
NTAPI
CmpNameSize(
IN PHHIVE Hive,
IN PUNICODE_STRING Name
IN PCUNICODE_STRING Name
);

USHORT
Expand All @@ -582,7 +582,7 @@ NTAPI
CmpCopyName(
IN PHHIVE Hive,
OUT PWCHAR Destination,
IN PUNICODE_STRING Source
IN PCUNICODE_STRING Source
);

VOID
Expand All @@ -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
);
Expand All @@ -613,7 +613,7 @@ NTAPI
CmpFindValueByName(
IN PHHIVE Hive,
IN PCM_KEY_NODE KeyNode,
IN PUNICODE_STRING Name
IN PCUNICODE_STRING Name
);

PCELL_DATA
Expand Down
6 changes: 3 additions & 3 deletions sdk/lib/cmlib/cmname.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ USHORT
NTAPI
CmpCopyName(IN PHHIVE Hive,
OUT PWCHAR Destination,
IN PUNICODE_STRING Source)
IN PCUNICODE_STRING Source)
{
ULONG i;

Expand Down Expand Up @@ -72,7 +72,7 @@ CmpCopyCompressedName(OUT PWCHAR Destination,
USHORT
NTAPI
CmpNameSize(IN PHHIVE Hive,
IN PUNICODE_STRING Name)
IN PCUNICODE_STRING Name)
{
ULONG i;

Expand Down Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/lib/cmlib/cmvalue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d873865

Please sign in to comment.