https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b910409a4ab00fb77a8745...
commit b910409a4ab00fb77a8745ea414db35d3ea58a9a Author: Serge Gautherie reactos-git_serge_171003@gautherie.fr AuthorDate: Wed Sep 9 03:46:56 2020 +0200 Commit: Thomas Faber thomas.faber@reactos.org CommitDate: Sat Nov 14 12:00:24 2020 +0100
[NTOS:KDBG] Add some missing OBJ_KERNEL_HANDLE
CORE-10207 --- ntoskrnl/kdbg/kdb_cli.c | 6 +++++- ntoskrnl/kdbg/kdb_symbols.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/kdbg/kdb_cli.c b/ntoskrnl/kdbg/kdb_cli.c index 53d874c3e2f..7314086c2f6 100644 --- a/ntoskrnl/kdbg/kdb_cli.c +++ b/ntoskrnl/kdbg/kdb_cli.c @@ -3798,7 +3798,11 @@ KdbpCliInit(VOID)
/* Initialize the object attributes */ RtlInitUnicodeString(&FileName, L"\SystemRoot\System32\drivers\etc\KDBinit"); - InitializeObjectAttributes(&ObjectAttributes, &FileName, 0, NULL, NULL); + InitializeObjectAttributes(&ObjectAttributes, + &FileName, + OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, + NULL, + NULL);
/* Open the file */ Status = ZwOpenFile(&hFile, FILE_READ_DATA | SYNCHRONIZE, diff --git a/ntoskrnl/kdbg/kdb_symbols.c b/ntoskrnl/kdbg/kdb_symbols.c index 3baafaf7b78..a3db0abe7fc 100644 --- a/ntoskrnl/kdbg/kdb_symbols.c +++ b/ntoskrnl/kdbg/kdb_symbols.c @@ -385,7 +385,7 @@ KdbpSymLoadModuleSymbols( /* Open the file */ InitializeObjectAttributes(&ObjectAttributes, FileName, - 0, + OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, NULL, NULL);