https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4864c874a28b908c73702…
commit 4864c874a28b908c737020d1945cd9812f981ffd
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Fri Jun 11 02:00:23 2021 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Jun 17 00:35:22 2021 +0200
[NTOS:IOPNP] Both PNP_PROPERTY_REMOVAL_POLICY_OVERRIDE and PNP_PROPERTY_LOCATION_PATHS
are unimplemented, return such status.
Fixes CID 1441387: Uninitialized scalar variable (UNINIT),
in the case of PNP_PROPERTY_LOCATION_PATHS.
---
ntoskrnl/io/pnpmgr/plugplay.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ntoskrnl/io/pnpmgr/plugplay.c b/ntoskrnl/io/pnpmgr/plugplay.c
index cb7e03976ab..b9551207c33 100644
--- a/ntoskrnl/io/pnpmgr/plugplay.c
+++ b/ntoskrnl/io/pnpmgr/plugplay.c
@@ -418,6 +418,9 @@ IopGetDeviceProperty(PPLUGPLAY_CONTROL_PROPERTY_DATA PropertyData)
}
else if (Property == PNP_PROPERTY_REMOVAL_POLICY_OVERRIDE)
{
+ UNIMPLEMENTED;
+ BufferSize = 0;
+ Status = STATUS_NOT_IMPLEMENTED;
}
else if (Property == PNP_PROPERTY_REMOVAL_POLICY_HARDWARE_DEFAULT)
{
@@ -476,6 +479,9 @@ IopGetDeviceProperty(PPLUGPLAY_CONTROL_PROPERTY_DATA PropertyData)
#if (WINVER >= _WIN32_WINNT_WS03)
case PNP_PROPERTY_LOCATION_PATHS:
+ UNIMPLEMENTED;
+ BufferSize = 0;
+ Status = STATUS_NOT_IMPLEMENTED;
break;
#endif