[BLUE][RTL][VIDEOPRT]

- Add missing OBJ_KERNEL_HANDLE
CORE-10207

svn path=/trunk/; revision=69294
This commit is contained in:
Thomas Faber 2015-09-19 21:10:11 +00:00
parent cb09321830
commit 25eb471cdf
3 changed files with 12 additions and 10 deletions

View file

@ -80,7 +80,7 @@ NTSTATUS ExtractFont(UINT32 CodePage, PUCHAR FontBitField)
InitializeObjectAttributes(&ObjectAttributes,
&LinkName,
OBJ_CASE_INSENSITIVE,
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
NULL,
NULL);

View file

@ -523,7 +523,7 @@ RtlpGetRegistryHandle(IN ULONG RelativeTo,
/* Initialize the object attributes */
InitializeObjectAttributes(&ObjectAttributes,
&KeyName,
OBJ_CASE_INSENSITIVE,
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
NULL,
NULL);
@ -742,19 +742,21 @@ RtlFormatCurrentUserKeyPath(OUT PUNICODE_STRING KeyPath)
PAGED_CODE_RTL();
/* Open the thread token */
Status = ZwOpenThreadToken(NtCurrentThread(),
TOKEN_QUERY,
TRUE,
&TokenHandle);
Status = ZwOpenThreadTokenEx(NtCurrentThread(),
TOKEN_QUERY,
TRUE,
OBJ_KERNEL_HANDLE,
&TokenHandle);
if (!NT_SUCCESS(Status))
{
/* We failed, is it because we don't have a thread token? */
if (Status != STATUS_NO_TOKEN) return Status;
/* It is, so use the process token */
Status = ZwOpenProcessToken(NtCurrentProcess(),
TOKEN_QUERY,
&TokenHandle);
Status = ZwOpenProcessTokenEx(NtCurrentProcess(),
TOKEN_QUERY,
OBJ_KERNEL_HANDLE,
&TokenHandle);
if (!NT_SUCCESS(Status)) return Status;
}

View file

@ -58,7 +58,7 @@ IntInitializeVideoAddressSpace(VOID)
/* Open the physical memory section */
InitializeObjectAttributes(&ObjectAttributes,
&PhysMemName,
0,
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
NULL,
NULL);
Status = ZwOpenSection(&PhysMemHandle,