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

View file

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