}
/* Allocate and initialize the new section */
- Size = FIELD_OFFSET(INFCACHESECTION,
- Name[_tcslen (Name) + 1]);
+ Size = (ULONG)FIELD_OFFSET(INFCACHESECTION,
+ Name[_tcslen (Name) + 1]);
Section = (PINFCACHESECTION)MALLOC (Size);
if (Section == NULL)
{
PINFCACHEFIELD Field;
ULONG Size;
- Size = FIELD_OFFSET(INFCACHEFIELD,
- Data[_tcslen(Data) + 1]);
+ Size = (ULONG)FIELD_OFFSET(INFCACHEFIELD,
+ Data[_tcslen(Data) + 1]);
Field = (PINFCACHEFIELD)MALLOC(Size);
if (Field == NULL)
{
/* push data from current token start up to pos into the current token */
static int push_token( struct parser *parser, const CHAR *pos )
{
- unsigned int len = pos - parser->start;
+ UINT len = (UINT)(pos - parser->start);
const CHAR *src = parser->start;
TCHAR *dst = parser->token + parser->token_len;
{
if (error_line)
*error_line = parser.line_pos;
- return parser.error;
+ return (INFSTATUS)parser.error;
}
/* find the [strings] section */
for (Index = 1; Index < FieldIndex; Index++)
CacheField = CacheField->Next;
- Size = CacheLine->FieldCount - FieldIndex + 1;
+ Size = (ULONG)CacheLine->FieldCount - FieldIndex + 1;
if (RequiredSize != NULL)
*RequiredSize = Size;
return -1;
}
- FileLength = ftell(File);
+ FileLength = (ULONG)ftell(File);
if ((ULONG) -1 == FileLength)
{
DPRINT1("ftell() failed (errno %d)\n", errno);