mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
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:
parent
b099687f31
commit
f4bf96a034
2 changed files with 10 additions and 7 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue