Author: ekohl
Date: Mon Nov 18 22:16:16 2013
New Revision: 61046
URL:
http://svn.reactos.org/svn/reactos?rev=61046&view=rev
Log:
[EVENTLOG]
ElfrClearELFW: Fail, if the log file is a backup file.
Modified:
trunk/reactos/base/services/eventlog/rpc.c
Modified: trunk/reactos/base/services/eventlog/rpc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/eventlog/rpc…
==============================================================================
--- trunk/reactos/base/services/eventlog/rpc.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/eventlog/rpc.c [iso-8859-1] Mon Nov 18 22:16:16 2013
@@ -234,6 +234,10 @@
{
return STATUS_INVALID_HANDLE;
}
+
+ /* Fail, if the log file is a backup file */
+ if (lpLogHandle->Flags & LOG_HANDLE_BACKUP_FILE)
+ return STATUS_INVALID_HANDLE;
return LogfClearFile(lpLogHandle->LogFile,
(PUNICODE_STRING)BackupFileName);