[CONSRV]: We can return the real NTSTATUS code instead of a STATUS_UNSUCCESSFUL. Noticed by Thomas some time ago. I kept the STATUS_UNSUCCESSFUL first because I didn't want to change the returned status code as it was before the changes of r65449. But I changed my mind since then! d8^)

svn path=/trunk/; revision=65941
This commit is contained in:
Hermès Bélusca-Maïto 2015-01-02 20:32:44 +00:00
parent 3e9c5864e7
commit f4cafa72d4

View file

@ -212,10 +212,7 @@ ConDrvInitInputBuffer(IN PCONSOLE Console,
Status = NtCreateEvent(&Console->InputBuffer.ActiveEvent, EVENT_ALL_ACCESS,
&ObjectAttributes, NotificationEvent, FALSE);
if (!NT_SUCCESS(Status))
{
return STATUS_UNSUCCESSFUL;
// return Status;
}
return Status;
Console->InputBuffer.InputBufferSize = InputBufferSize;
InitializeListHead(&Console->InputBuffer.InputEvents);