--- trunk/reactos/drivers/video/videoprt/videoprt.c 2005-05-01 22:29:18 UTC (rev 14938)
+++ trunk/reactos/drivers/video/videoprt/videoprt.c 2005-05-01 22:30:13 UTC (rev 14939)
@@ -152,7 +152,7 @@
DeviceNumber++;
continue;
}
- else if (Status == STATUS_OBJECT_NAME_INVALID)
+ else if (Status == STATUS_OBJECT_NAME_NOT_FOUND)
break;
else
{
--- trunk/reactos/ntoskrnl/ob/namespc.c 2005-05-01 22:29:18 UTC (rev 14938)
+++ trunk/reactos/ntoskrnl/ob/namespc.c 2005-05-01 22:30:13 UTC (rev 14939)
@@ -143,12 +143,15 @@
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,