[INFLIB] Fix INFCONTEXT structure to be compatible with the official definition (#1603)

* [INFLIB] Fix INFCONTEXT structure to be compatible with the official definition.

This makes inflib work on x64.
This commit is contained in:
Timo Kreuzer 2019-06-23 22:35:19 +02:00 committed by GitHub
parent a9c4c07955
commit a75e4db855
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 136 additions and 40 deletions

View file

@ -30,6 +30,7 @@ typedef struct _INFCACHELINE
{
struct _INFCACHELINE *Next;
struct _INFCACHELINE *Prev;
UINT Id;
LONG FieldCount;
@ -47,8 +48,10 @@ typedef struct _INFCACHESECTION
PINFCACHELINE FirstLine;
PINFCACHELINE LastLine;
UINT Id;
LONG LineCount;
UINT NextLineId;
WCHAR Name[1];
} INFCACHESECTION, *PINFCACHESECTION;
@ -58,6 +61,7 @@ typedef struct _INFCACHE
LANGID LanguageId;
PINFCACHESECTION FirstSection;
PINFCACHESECTION LastSection;
UINT NextSectionId;
PINFCACHESECTION StringsSection;
} INFCACHE, *PINFCACHE;
@ -66,8 +70,8 @@ typedef struct _INFCONTEXT
{
PINFCACHE Inf;
PINFCACHE CurrentInf;
PINFCACHESECTION Section;
PINFCACHELINE Line;
UINT Section;
UINT Line;
} INFCONTEXT;
typedef int INFSTATUS;
@ -142,5 +146,11 @@ extern INFSTATUS InfpAddLineWithKey(PINFCONTEXT Context, PCWSTR Key);
extern INFSTATUS InfpAddField(PINFCONTEXT Context, PCWSTR Data);
extern VOID InfpFreeContext(PINFCONTEXT Context);
PINFCACHELINE
InfpFindLineById(PINFCACHESECTION Section, UINT Id);
PINFCACHESECTION
InfpGetSectionForContext(PINFCONTEXT Context);
PINFCACHELINE
InfpGetLineForContext(PINFCONTEXT Context);
/* EOF */