[EVENTLOG]

- Fix MSVC warnings

svn path=/trunk/; revision=52610
This commit is contained in:
Rafal Harabien 2011-07-10 15:39:32 +00:00
parent 0685c73a53
commit ce8c949828
3 changed files with 9 additions and 18 deletions

View file

@ -463,7 +463,7 @@ VOID SystemTimeToEventTime(SYSTEMTIME * pSystemTime, DWORD * pEventTime)
SystemTimeToFileTime(pSystemTime, &Time.ft);
SystemTimeToFileTime(&st1970, &u1970.ft);
*pEventTime = (Time.ll - u1970.ll) / 10000000;
*pEventTime = (DWORD)((Time.ll - u1970.ll) / 10000000ull);
}
VOID PRINT_HEADER(PEVENTLOGHEADER header)

View file

@ -896,17 +896,17 @@ DWORD LogfGetCurrentRecord(PLOGFILE LogFile)
BOOL LogfDeleteOffsetInformation(PLOGFILE LogFile, ULONG ulNumber)
{
int i;
DWORD i;
if (ulNumber != LogFile->OffsetInfo[0].EventNumber)
{
return FALSE;
}
for (i=0;i<LogFile->OffsetInfoNext-1; i++)
for (i = 0; i < LogFile->OffsetInfoNext - 1; i++)
{
LogFile->OffsetInfo[i].EventNumber = LogFile->OffsetInfo[i+1].EventNumber;
LogFile->OffsetInfo[i].EventOffset = LogFile->OffsetInfo[i+1].EventOffset;
LogFile->OffsetInfo[i].EventNumber = LogFile->OffsetInfo[i + 1].EventNumber;
LogFile->OffsetInfo[i].EventOffset = LogFile->OffsetInfo[i + 1].EventOffset;
}
LogFile->OffsetInfoNext--;
return TRUE;
@ -1102,4 +1102,4 @@ LogfReportEvent(WORD wType,
}
LogfFreeRecord(logBuffer);
}
}

View file

@ -190,24 +190,15 @@ interface eventlog
/* Function 19 */
NTSTATUS ElfrRegisterClusterSvc(
#ifndef __midl
[in] handle_t BindingHandle
#endif
); /* FIXME */
[in] handle_t BindingHandle);
/* Function 20 */
NTSTATUS ElfrDeregisterClusterSvc(
#ifndef __midl
[in] handle_t BindingHandle
#endif
); /* FIXME */
[in] handle_t BindingHandle);
/* Function 21 */
NTSTATUS ElfrWriteClusterEvents(
#ifndef __midl
[in] handle_t BindingHandle
#endif
); /* FIXME */
[in] handle_t BindingHandle);
/* Function 22 */
NTSTATUS ElfrGetLogInformation(