Remove the event log handle from the list *before* destroying it.
Fixes failure in advapi32:eventlog double close test.
svn path=/trunk/; revision=64034
NULL);
if (!NT_SUCCESS(Status))
{
- DPRINT1("NtWriteFile() failed!\n");
+ DPRINT1("NtWriteFile() failed! (Status: 0x%08lx)\n", Status);
goto Done;
}
NULL);
if (!NT_SUCCESS(Status))
{
- DPRINT1("NtWriteFile() failed!\n");
+ DPRINT1("NtWriteFile() failed! (Status: 0x%08lx)\n", Status);
}
Done:
if (!ElfGetLogHandleEntryByHandle(lpLogHandle))
return STATUS_INVALID_HANDLE;
+ RemoveEntryList(&lpLogHandle->LogHandleListEntry);
LogfClose(lpLogHandle->LogFile, FALSE);
- RemoveEntryList(&lpLogHandle->LogHandleListEntry);
HeapFree(GetProcessHeap(),0,lpLogHandle);
return STATUS_SUCCESS;
PLOGHANDLE lpLogHandle;
PLOGFILE lpLogFile;
- DPRINT("ElfrNumberOfRecords()");
+ DPRINT("ElfrNumberOfRecords()\n");
lpLogHandle = ElfGetLogHandleEntryByHandle(LogHandle);
if (!lpLogHandle)