Author: tfaber
Date: Sat Sep 19 21:10:11 2015
New Revision: 69294
URL:
http://svn.reactos.org/svn/reactos?rev=69294&view=rev
Log:
[BLUE][RTL][VIDEOPRT]
- Add missing OBJ_KERNEL_HANDLE
CORE-10207
Modified:
trunk/reactos/drivers/setup/blue/font.c
trunk/reactos/lib/rtl/registry.c
trunk/reactos/win32ss/drivers/videoprt/int10.c
Modified: trunk/reactos/drivers/setup/blue/font.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/setup/blue/font.c?…
==============================================================================
--- trunk/reactos/drivers/setup/blue/font.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/setup/blue/font.c [iso-8859-1] Sat Sep 19 21:10:11 2015
@@ -80,7 +80,7 @@
InitializeObjectAttributes(&ObjectAttributes,
&LinkName,
- OBJ_CASE_INSENSITIVE,
+ OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
NULL,
NULL);
Modified: trunk/reactos/lib/rtl/registry.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/registry.c?rev=692…
==============================================================================
--- trunk/reactos/lib/rtl/registry.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/registry.c [iso-8859-1] Sat Sep 19 21:10:11 2015
@@ -523,7 +523,7 @@
/* Initialize the object attributes */
InitializeObjectAttributes(&ObjectAttributes,
&KeyName,
- OBJ_CASE_INSENSITIVE,
+ OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
NULL,
NULL);
@@ -742,19 +742,21 @@
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;
}
Modified: trunk/reactos/win32ss/drivers/videoprt/int10.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/drivers/videoprt/i…
==============================================================================
--- trunk/reactos/win32ss/drivers/videoprt/int10.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/drivers/videoprt/int10.c [iso-8859-1] Sat Sep 19 21:10:11 2015
@@ -58,7 +58,7 @@
/* Open the physical memory section */
InitializeObjectAttributes(&ObjectAttributes,
&PhysMemName,
- 0,
+ OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
NULL,
NULL);
Status = ZwOpenSection(&PhysMemHandle,