[EVENTLOG]

Remove the event log handle from the list *before* destroying it.
Fixes failure in advapi32:eventlog double close test.

svn path=/trunk/; revision=64034
This commit is contained in:
Sylvain Petreolle
2014-09-03 23:07:47 +00:00
parent ee662394dd
commit 1b538306e3
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1252,7 +1252,7 @@ LogfBackupFile(PLOGFILE LogFile,
NULL);
if (!NT_SUCCESS(Status))
{
DPRINT1("NtWriteFile() failed!\n");
DPRINT1("NtWriteFile() failed! (Status: 0x%08lx)\n", Status);
goto Done;
}
@@ -1311,7 +1311,7 @@ LogfBackupFile(PLOGFILE LogFile,
NULL);
if (!NT_SUCCESS(Status))
{
DPRINT1("NtWriteFile() failed!\n");
DPRINT1("NtWriteFile() failed! (Status: 0x%08lx)\n", Status);
}
Done:
+2 -2
View File
@@ -215,9 +215,9 @@ ElfDeleteEventLogHandle(IELF_HANDLE EventLogHandle)
if (!ElfGetLogHandleEntryByHandle(lpLogHandle))
return STATUS_INVALID_HANDLE;
RemoveEntryList(&lpLogHandle->LogHandleListEntry);
LogfClose(lpLogHandle->LogFile, FALSE);
RemoveEntryList(&lpLogHandle->LogHandleListEntry);
HeapFree(GetProcessHeap(),0,lpLogHandle);
return STATUS_SUCCESS;
@@ -291,7 +291,7 @@ NTSTATUS ElfrNumberOfRecords(
PLOGHANDLE lpLogHandle;
PLOGFILE lpLogFile;
DPRINT("ElfrNumberOfRecords()");
DPRINT("ElfrNumberOfRecords()\n");
lpLogHandle = ElfGetLogHandleEntryByHandle(LogHandle);
if (!lpLogHandle)