mirror of
https://github.com/reactos/reactos.git
synced 2026-05-22 15:20:29 +08:00
Unnamed objects do not have a base directory.
svn path=/trunk/; revision=15409
This commit is contained in:
@@ -77,7 +77,7 @@ CreateFileMappingA(HANDLE hFile,
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
(lpName ? &UnicodeName : NULL),
|
||||
0,
|
||||
hBaseDir,
|
||||
(lpName ? hBaseDir : NULL),
|
||||
SecurityDescriptor);
|
||||
|
||||
Status = NtCreateSection(&SectionHandle,
|
||||
@@ -155,7 +155,7 @@ CreateFileMappingW(HANDLE hFile,
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
(lpName ? &UnicodeName : NULL),
|
||||
0,
|
||||
hBaseDir,
|
||||
(lpName ? hBaseDir : NULL),
|
||||
SecurityDescriptor);
|
||||
|
||||
Status = NtCreateSection(&SectionHandle,
|
||||
|
||||
@@ -77,7 +77,7 @@ CreateEventW(LPSECURITY_ATTRIBUTES lpEventAttributes,
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
(lpName ? &UnicodeName : NULL),
|
||||
0,
|
||||
hBaseDir,
|
||||
(lpName ? hBaseDir : NULL),
|
||||
NULL);
|
||||
|
||||
if (lpEventAttributes != NULL)
|
||||
|
||||
@@ -76,7 +76,7 @@ CreateMutexW(LPSECURITY_ATTRIBUTES lpMutexAttributes,
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
(lpName ? &UnicodeName : NULL),
|
||||
0,
|
||||
hBaseDir,
|
||||
(lpName ? hBaseDir : NULL),
|
||||
NULL);
|
||||
|
||||
if (lpMutexAttributes != NULL)
|
||||
|
||||
@@ -77,7 +77,7 @@ CreateSemaphoreW(LPSECURITY_ATTRIBUTES lpSemaphoreAttributes,
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
(lpName ? &UnicodeName : NULL),
|
||||
0,
|
||||
hBaseDir,
|
||||
(lpName ? hBaseDir : NULL),
|
||||
NULL);
|
||||
|
||||
if (lpSemaphoreAttributes != NULL)
|
||||
|
||||
@@ -38,7 +38,7 @@ CreateWaitableTimerW(LPSECURITY_ATTRIBUTES lpTimerAttributes,
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
(lpTimerName ? &UnicodeName : NULL),
|
||||
0,
|
||||
hBaseDir,
|
||||
(lpTimerName ? hBaseDir : NULL),
|
||||
NULL);
|
||||
|
||||
if (lpTimerAttributes != NULL)
|
||||
|
||||
@@ -278,7 +278,7 @@ IopSecurityFile(PVOID ObjectBody,
|
||||
if (FileObject->Flags & FO_DIRECT_DEVICE_OPEN)
|
||||
{
|
||||
/* Get the Device Object */
|
||||
DPRINT1("here\n");
|
||||
DPRINT("here\n");
|
||||
DeviceObject = IoGetAttachedDevice(FileObject->DeviceObject);
|
||||
|
||||
/* Assign the Security Descriptor */
|
||||
|
||||
@@ -74,7 +74,11 @@ ObpCaptureObjectName(IN OUT PUNICODE_STRING CapturedName,
|
||||
}
|
||||
|
||||
/* Fail if anything up to here died */
|
||||
if (!NT_SUCCESS(Status)) return Status;
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("Probing failed\n");
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -228,14 +232,12 @@ ObpCaptureObjectAttributes(IN POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
}
|
||||
else
|
||||
{
|
||||
#if 0 /*FIXME: FIX KERNEL32 and STUFF!!! */
|
||||
/* He can't have specified a Root Directory */
|
||||
if (ObjectCreateInfo->RootDirectory)
|
||||
{
|
||||
DPRINT1("Invalid name\n");
|
||||
Status = STATUS_OBJECT_NAME_INVALID;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
fail:
|
||||
|
||||
Reference in New Issue
Block a user