mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:35:47 +00:00
[BLUE][RTL][VIDEOPRT]
- Add missing OBJ_KERNEL_HANDLE CORE-10207 svn path=/trunk/; revision=69294
This commit is contained in:
parent
cb09321830
commit
25eb471cdf
3 changed files with 12 additions and 10 deletions
|
@ -80,7 +80,7 @@ NTSTATUS ExtractFont(UINT32 CodePage, PUCHAR FontBitField)
|
|||
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
&LinkName,
|
||||
OBJ_CASE_INSENSITIVE,
|
||||
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue