mirror of
https://github.com/reactos/reactos.git
synced 2025-04-29 18:48:53 +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 *******************************************************************/
|
/* INCLUDES *******************************************************************/
|
||||||
|
|
||||||
#include <ntoskrnl.h>
|
#include <ntoskrnl.h>
|
||||||
#define NDEBUG
|
// #define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
/* GLOBALS ********************************************************************/
|
/* GLOBALS ********************************************************************/
|
||||||
|
@ -1926,7 +1926,7 @@ IopLoadDriver(
|
||||||
Status = IopGetRegistryValue(ServiceHandle, L"ImagePath", &kvInfo);
|
Status = IopGetRegistryValue(ServiceHandle, L"ImagePath", &kvInfo);
|
||||||
if (NT_SUCCESS(Status))
|
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);
|
ExFreePool(kvInfo);
|
||||||
return STATUS_ILL_FORMED_SERVICE_ENTRY;
|
return STATUS_ILL_FORMED_SERVICE_ENTRY;
|
||||||
|
|
Loading…
Reference in a new issue