mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 08:30:21 +00:00
[NTOS:IO] Allow REG_SZ type for ImagePath of a driver
Fixes the load of the Sysinternals FileMon driver. CORE-18725
This commit is contained in:
parent
475c0d1b4d
commit
947f60b207
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@
|
|||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include <ntoskrnl.h>
|
||||
#define NDEBUG
|
||||
// #define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* GLOBALS ********************************************************************/
|
||||
|
@ -1926,7 +1926,7 @@ IopLoadDriver(
|
|||
Status = IopGetRegistryValue(ServiceHandle, L"ImagePath", &kvInfo);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
if (kvInfo->Type != REG_EXPAND_SZ || kvInfo->DataLength == 0)
|
||||
if ((kvInfo->Type != REG_EXPAND_SZ && kvInfo->Type != REG_SZ) || kvInfo->DataLength == 0)
|
||||
{
|
||||
ExFreePool(kvInfo);
|
||||
return STATUS_ILL_FORMED_SERVICE_ENTRY;
|
||||
|
|
Loading…
Reference in a new issue