https://git.reactos.org/?p=reactos.git;a=commitdiff;h=eeb4cbcb6be063606c801d...
commit eeb4cbcb6be063606c801dea317a1a671ed0cbd4 Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Sun Mar 20 19:47:04 2022 +0100 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Fri Mar 25 18:54:22 2022 +0100
[FREELDR:INF] Change immutable input string pointers to PCSTR when it's possible. --- boot/freeldr/freeldr/ntldr/inffile.c | 16 ++++++++-------- boot/freeldr/freeldr/ntldr/inffile.h | 10 +++++----- 2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/boot/freeldr/freeldr/ntldr/inffile.c b/boot/freeldr/freeldr/ntldr/inffile.c index a9dd7152eaf..b915fcbf576 100644 --- a/boot/freeldr/freeldr/ntldr/inffile.c +++ b/boot/freeldr/freeldr/ntldr/inffile.c @@ -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;
diff --git a/boot/freeldr/freeldr/ntldr/inffile.h b/boot/freeldr/freeldr/ntldr/inffile.h index be1ae482340..752f6707ab5 100644 --- a/boot/freeldr/freeldr/ntldr/inffile.h +++ b/boot/freeldr/freeldr/ntldr/inffile.h @@ -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,