[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(pSystemTime, &Time.ft);
SystemTimeToFileTime(&st1970, &u1970.ft); SystemTimeToFileTime(&st1970, &u1970.ft);
*pEventTime = (Time.ll - u1970.ll) / 10000000; *pEventTime = (DWORD)((Time.ll - u1970.ll) / 10000000ull);
} }
VOID PRINT_HEADER(PEVENTLOGHEADER header) VOID PRINT_HEADER(PEVENTLOGHEADER header)

View file

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

View file

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