mirror of
https://github.com/reactos/reactos.git
synced 2025-06-19 17:05:27 +00:00
[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:
parent
a9c4c07955
commit
a75e4db855
4 changed files with 136 additions and 40 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue