Author: rharabien
Date: Sun Jul 10 15:39:32 2011
New Revision: 52610
URL:
http://svn.reactos.org/svn/reactos?rev=52610&view=rev
Log:
[EVENTLOG]
- Fix MSVC warnings
Modified:
trunk/reactos/base/services/eventlog/eventlog.c
trunk/reactos/base/services/eventlog/file.c
trunk/reactos/include/reactos/idl/eventlogrpc.idl
Modified: trunk/reactos/base/services/eventlog/eventlog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/eventlog/eve…
==============================================================================
--- trunk/reactos/base/services/eventlog/eventlog.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/eventlog/eventlog.c [iso-8859-1] Sun Jul 10 15:39:32 2011
@@ -463,7 +463,7 @@
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)
Modified: trunk/reactos/base/services/eventlog/file.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/eventlog/fil…
==============================================================================
--- trunk/reactos/base/services/eventlog/file.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/eventlog/file.c [iso-8859-1] Sun Jul 10 15:39:32 2011
@@ -896,17 +896,17 @@
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++)
- {
- LogFile->OffsetInfo[i].EventNumber = LogFile->OffsetInfo[i+1].EventNumber;
- LogFile->OffsetInfo[i].EventOffset = LogFile->OffsetInfo[i+1].EventOffset;
+ 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->OffsetInfoNext--;
return TRUE;
@@ -1102,4 +1102,4 @@
}
LogfFreeRecord(logBuffer);
-}
+}
Modified: trunk/reactos/include/reactos/idl/eventlogrpc.idl
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/idl/eventl…
==============================================================================
--- trunk/reactos/include/reactos/idl/eventlogrpc.idl [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/idl/eventlogrpc.idl [iso-8859-1] Sun Jul 10 15:39:32
2011
@@ -190,24 +190,15 @@
/* 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(