[FREELDR:INF] Change immutable input string pointers to PCSTR when it's possible.

This commit is contained in:
Hermès Bélusca-Maïto 2022-03-20 19:47:04 +01:00
parent e51c305f51
commit eeb4cbcb6b
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 13 additions and 13 deletions

View file

@ -225,7 +225,7 @@ static
PINFCACHESECTION
InfpCacheAddSection(
PINFCACHE Cache,
PCHAR Name)
PCSTR Name)
{
PINFCACHESECTION Section = NULL;
SIZE_T Size;
@ -308,7 +308,7 @@ static
PVOID
InfpAddKeyToLine(
PINFCACHELINE Line,
PCHAR Key)
PCSTR Key)
{
if (Line == NULL)
return NULL;
@ -330,7 +330,7 @@ static
PVOID
InfpAddFieldToLine(
PINFCACHELINE Line,
PCHAR Data)
PCSTR Data)
{
PINFCACHEFIELD Field;
SIZE_T Size;
@ -1134,7 +1134,7 @@ InfFindNextLine (
BOOLEAN
InfFindFirstMatchLine (
PINFCONTEXT ContextIn,
PCHAR Key,
PCSTR Key,
PINFCONTEXT ContextOut)
{
PINFCACHELINE CacheLine;
@ -1171,7 +1171,7 @@ InfFindFirstMatchLine (
BOOLEAN
InfFindNextMatchLine (
PINFCONTEXT ContextIn,
PCHAR Key,
PCSTR Key,
PINFCONTEXT ContextOut)
{
PINFCACHELINE CacheLine;
@ -1208,7 +1208,7 @@ InfFindNextMatchLine (
LONG
InfGetLineCount(
HINF InfHandle,
PCHAR Section)
PCSTR Section)
{
PINFCACHE Cache;
PINFCACHESECTION CacheSection;
@ -1490,8 +1490,8 @@ InfGetStringField (
BOOLEAN
InfGetData (
PINFCONTEXT Context,
PCHAR *Key,
PCHAR *Data)
PCSTR *Key,
PCSTR *Data)
{
PINFCACHELINE CacheKey;

View file

@ -49,18 +49,18 @@ InfFindNextLine (PINFCONTEXT ContextIn,
BOOLEAN
InfFindFirstMatchLine (PINFCONTEXT ContextIn,
PCHAR Key,
PCSTR Key,
PINFCONTEXT ContextOut);
BOOLEAN
InfFindNextMatchLine (PINFCONTEXT ContextIn,
PCHAR Key,
PCSTR Key,
PINFCONTEXT ContextOut);
LONG
InfGetLineCount (HINF InfHandle,
PCHAR Section);
PCSTR Section);
LONG
InfGetFieldCount (PINFCONTEXT Context);
@ -96,8 +96,8 @@ InfGetStringField (PINFCONTEXT Context,
BOOLEAN
InfGetData (PINFCONTEXT Context,
PCHAR *Key,
PCHAR *Data);
PCSTR *Key,
PCSTR *Data);
BOOLEAN
InfGetDataField (PINFCONTEXT Context,