Fix garbage text output with cmd.exe in GUI mode.

Thanks to Hartmut for pointing me the problem

svn path=/trunk/; revision=14939
This commit is contained in:
Hervé Poussineau 2005-05-01 22:30:13 +00:00
parent b099687f31
commit f4bf96a034
2 changed files with 10 additions and 7 deletions

View file

@ -152,7 +152,7 @@ IntVideoPortAllocateDeviceNumber(VOID)
DeviceNumber++;
continue;
}
else if (Status == STATUS_OBJECT_NAME_INVALID)
else if (Status == STATUS_OBJECT_NAME_NOT_FOUND)
break;
else
{

View file

@ -143,12 +143,15 @@ ObOpenObjectByName(IN POBJECT_ATTRIBUTES ObjectAttributes,
return Status;
}
if (RemainingPath.Buffer != NULL ||
Object == NULL)
{
RtlFreeUnicodeString(&RemainingPath);
return STATUS_OBJECT_NAME_INVALID;
}
if (RemainingPath.Buffer != NULL)
{
if (wcschr(RemainingPath.Buffer + 1, L'\\') == NULL)
return STATUS_OBJECT_NAME_NOT_FOUND;
else
return STATUS_OBJECT_PATH_NOT_FOUND;
}
if (Object == NULL)
return STATUS_UNSUCCESSFUL;
Status = ObCreateHandle(PsGetCurrentProcess(),
Object,