mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user