mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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++;
|
DeviceNumber++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (Status == STATUS_OBJECT_NAME_INVALID)
|
else if (Status == STATUS_OBJECT_NAME_NOT_FOUND)
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -143,12 +143,15 @@ ObOpenObjectByName(IN POBJECT_ATTRIBUTES ObjectAttributes,
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (RemainingPath.Buffer != NULL ||
|
if (RemainingPath.Buffer != NULL)
|
||||||
Object == NULL)
|
{
|
||||||
{
|
if (wcschr(RemainingPath.Buffer + 1, L'\\') == NULL)
|
||||||
RtlFreeUnicodeString(&RemainingPath);
|
return STATUS_OBJECT_NAME_NOT_FOUND;
|
||||||
return STATUS_OBJECT_NAME_INVALID;
|
else
|
||||||
}
|
return STATUS_OBJECT_PATH_NOT_FOUND;
|
||||||
|
}
|
||||||
|
if (Object == NULL)
|
||||||
|
return STATUS_UNSUCCESSFUL;
|
||||||
|
|
||||||
Status = ObCreateHandle(PsGetCurrentProcess(),
|
Status = ObCreateHandle(PsGetCurrentProcess(),
|
||||||
Object,
|
Object,
|
||||||
|
|
Loading…
Reference in a new issue