mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:12:57 +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,
|
InitializeObjectAttributes(&ObjectAttributes,
|
||||||
&LinkName,
|
&LinkName,
|
||||||
OBJ_CASE_INSENSITIVE,
|
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
||||||
NULL,
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
|
|
@ -523,7 +523,7 @@ RtlpGetRegistryHandle(IN ULONG RelativeTo,
|
||||||
/* Initialize the object attributes */
|
/* Initialize the object attributes */
|
||||||
InitializeObjectAttributes(&ObjectAttributes,
|
InitializeObjectAttributes(&ObjectAttributes,
|
||||||
&KeyName,
|
&KeyName,
|
||||||
OBJ_CASE_INSENSITIVE,
|
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
||||||
NULL,
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
@ -742,19 +742,21 @@ RtlFormatCurrentUserKeyPath(OUT PUNICODE_STRING KeyPath)
|
||||||
PAGED_CODE_RTL();
|
PAGED_CODE_RTL();
|
||||||
|
|
||||||
/* Open the thread token */
|
/* Open the thread token */
|
||||||
Status = ZwOpenThreadToken(NtCurrentThread(),
|
Status = ZwOpenThreadTokenEx(NtCurrentThread(),
|
||||||
TOKEN_QUERY,
|
TOKEN_QUERY,
|
||||||
TRUE,
|
TRUE,
|
||||||
&TokenHandle);
|
OBJ_KERNEL_HANDLE,
|
||||||
|
&TokenHandle);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* We failed, is it because we don't have a thread token? */
|
/* We failed, is it because we don't have a thread token? */
|
||||||
if (Status != STATUS_NO_TOKEN) return Status;
|
if (Status != STATUS_NO_TOKEN) return Status;
|
||||||
|
|
||||||
/* It is, so use the process token */
|
/* It is, so use the process token */
|
||||||
Status = ZwOpenProcessToken(NtCurrentProcess(),
|
Status = ZwOpenProcessTokenEx(NtCurrentProcess(),
|
||||||
TOKEN_QUERY,
|
TOKEN_QUERY,
|
||||||
&TokenHandle);
|
OBJ_KERNEL_HANDLE,
|
||||||
|
&TokenHandle);
|
||||||
if (!NT_SUCCESS(Status)) return Status;
|
if (!NT_SUCCESS(Status)) return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ IntInitializeVideoAddressSpace(VOID)
|
||||||
/* Open the physical memory section */
|
/* Open the physical memory section */
|
||||||
InitializeObjectAttributes(&ObjectAttributes,
|
InitializeObjectAttributes(&ObjectAttributes,
|
||||||
&PhysMemName,
|
&PhysMemName,
|
||||||
0,
|
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
||||||
NULL,
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
Status = ZwOpenSection(&PhysMemHandle,
|
Status = ZwOpenSection(&PhysMemHandle,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue