mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
Remove references to Infp Functions that collide with inflib names, call the actual functions instead of making small functions that shared the same parameters and just called into inflib anyway, with no changes whatsoever.
Make InfpGetIntField's 3rd parameter an INT* svn path=/branches/ros-amd64-bringup/; revision=36443
This commit is contained in:
@@ -65,46 +65,6 @@ InfpFindFirstLineW(
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL WINAPI
|
||||
InfpFindNextLine(
|
||||
IN PINFCONTEXT ContextIn,
|
||||
OUT PINFCONTEXT ContextOut)
|
||||
{
|
||||
return InfFindNextLine(ContextIn, ContextOut);
|
||||
}
|
||||
|
||||
BOOL WINAPI
|
||||
InfpGetBinaryField(
|
||||
IN PINFCONTEXT Context,
|
||||
IN ULONG FieldIndex,
|
||||
IN OUT BYTE* ReturnBuffer,
|
||||
IN ULONG ReturnBufferSize,
|
||||
OUT PULONG RequiredSize)
|
||||
{
|
||||
return InfGetBinaryField(Context, FieldIndex, ReturnBuffer, ReturnBufferSize, RequiredSize);
|
||||
}
|
||||
|
||||
DWORD WINAPI
|
||||
InfpGetFieldCount(
|
||||
IN PINFCONTEXT Context)
|
||||
{
|
||||
return (DWORD)InfGetFieldCount(Context);
|
||||
}
|
||||
|
||||
BOOL WINAPI
|
||||
InfpGetIntField(
|
||||
IN PINFCONTEXT Context,
|
||||
IN DWORD FieldIndex,
|
||||
OUT PINT IntegerValue)
|
||||
{
|
||||
LONG IntegerValueL;
|
||||
BOOL ret;
|
||||
|
||||
ret = InfGetIntField(Context, FieldIndex, &IntegerValueL);
|
||||
*IntegerValue = (INT)IntegerValueL;
|
||||
return ret;
|
||||
}
|
||||
|
||||
BOOL WINAPI
|
||||
InfpGetMultiSzFieldW(
|
||||
IN PINFCONTEXT Context,
|
||||
|
||||
@@ -37,10 +37,10 @@
|
||||
|
||||
#define SetupCloseInfFile InfpCloseInfFile
|
||||
#define SetupFindFirstLineW InfpFindFirstLineW
|
||||
#define SetupFindNextLine InfpFindNextLine
|
||||
#define SetupGetBinaryField InfpGetBinaryField
|
||||
#define SetupGetFieldCount InfpGetFieldCount
|
||||
#define SetupGetIntField InfpGetIntField
|
||||
#define SetupFindNextLine InfFindNextLine
|
||||
#define SetupGetBinaryField InfGetBinaryField
|
||||
#define SetupGetFieldCount InfGetFieldCount
|
||||
#define SetupGetIntField InfGetIntField
|
||||
#define SetupGetMultiSzFieldW InfpGetMultiSzFieldW
|
||||
#define SetupGetStringFieldW InfpGetStringFieldW
|
||||
#define SetupOpenInfFileW InfpOpenInfFileW
|
||||
@@ -67,29 +67,6 @@ InfpFindFirstLineW(
|
||||
IN PCWSTR Key,
|
||||
IN OUT PINFCONTEXT Context);
|
||||
|
||||
BOOL WINAPI
|
||||
InfpFindNextLine(
|
||||
IN PINFCONTEXT ContextIn,
|
||||
OUT PINFCONTEXT ContextOut);
|
||||
|
||||
BOOL WINAPI
|
||||
InfpGetBinaryField(
|
||||
IN PINFCONTEXT Context,
|
||||
IN ULONG FieldIndex,
|
||||
IN OUT BYTE* ReturnBuffer,
|
||||
IN ULONG ReturnBufferSize,
|
||||
OUT PULONG RequiredSize);
|
||||
|
||||
DWORD WINAPI
|
||||
InfpGetFieldCount(
|
||||
IN PINFCONTEXT Context);
|
||||
|
||||
BOOL WINAPI
|
||||
InfpGetIntField(
|
||||
IN PINFCONTEXT Context,
|
||||
IN DWORD FieldIndex,
|
||||
OUT PINT IntegerValue);
|
||||
|
||||
BOOL WINAPI
|
||||
InfpGetMultiSzFieldW(
|
||||
IN PINFCONTEXT Context,
|
||||
|
||||
@@ -54,6 +54,7 @@
|
||||
/* Internal Headers */
|
||||
#include "interface/consup.h"
|
||||
#include "partlist.h"
|
||||
#include "infros.h"
|
||||
#include "inffile.h"
|
||||
#include "inicache.h"
|
||||
#include "progress.h"
|
||||
|
||||
@@ -271,7 +271,7 @@ InfpGetBinaryField(PINFCONTEXT Context,
|
||||
INFSTATUS
|
||||
InfpGetIntField(PINFCONTEXT Context,
|
||||
ULONG FieldIndex,
|
||||
PLONG IntegerValue)
|
||||
INT* IntegerValue)
|
||||
{
|
||||
PINFCACHELINE CacheLine;
|
||||
PINFCACHEFIELD CacheField;
|
||||
|
||||
@@ -116,7 +116,7 @@ extern INFSTATUS InfpGetBinaryField(PINFCONTEXT Context,
|
||||
PULONG RequiredSize);
|
||||
extern INFSTATUS InfpGetIntField(PINFCONTEXT Context,
|
||||
ULONG FieldIndex,
|
||||
PLONG IntegerValue);
|
||||
INT* IntegerValue);
|
||||
extern INFSTATUS InfpGetMultiSzField(PINFCONTEXT Context,
|
||||
ULONG FieldIndex,
|
||||
PTSTR ReturnBuffer,
|
||||
|
||||
@@ -49,7 +49,7 @@ extern BOOLEAN InfGetBinaryField(PINFCONTEXT Context,
|
||||
PULONG RequiredSize);
|
||||
extern BOOLEAN InfGetIntField(PINFCONTEXT Context,
|
||||
ULONG FieldIndex,
|
||||
PLONG IntegerValue);
|
||||
PINT IntegerValue);
|
||||
extern BOOLEAN InfGetMultiSzField(PINFCONTEXT Context,
|
||||
ULONG FieldIndex,
|
||||
PWSTR ReturnBuffer,
|
||||
|
||||
@@ -84,7 +84,7 @@ InfGetBinaryField(PINFCONTEXT Context,
|
||||
BOOLEAN
|
||||
InfGetIntField(PINFCONTEXT Context,
|
||||
ULONG FieldIndex,
|
||||
PLONG IntegerValue)
|
||||
PINT IntegerValue)
|
||||
{
|
||||
return INF_SUCCESS(InfpGetIntField(Context, FieldIndex, IntegerValue));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user