https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7cc5163bfa5972597bc28…
commit 7cc5163bfa5972597bc2827393626e880b8ec311
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sun Apr 17 13:52:59 2022 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sun Apr 17 13:52:59 2022 +0200
[UMPNPMGR] Add checks to PNP_GetRelatedDeviceInstance
PNP_GetRelatedDeviceInstance must fail if we try to retrieve the parent or a sibling of the root device.
---
base/services/umpnpmgr/rpcserver.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/base/services/umpnpmgr/rpcserver.c b/base/services/umpnpmgr/rpcserver.c
index 34bdf848966..470a9b67622 100644
--- a/base/services/umpnpmgr/rpcserver.c
+++ b/base/services/umpnpmgr/rpcserver.c
@@ -781,6 +781,14 @@ PNP_GetRelatedDeviceInstance(
if (!IsValidDeviceInstanceID(pDeviceID))
return CR_INVALID_DEVINST;
+ /* The root device does not have a parent device or sibling devices */
+ if ((ulRelationship == PNP_GET_PARENT_DEVICE_INSTANCE) ||
+ (ulRelationship == PNP_GET_SIBLING_DEVICE_INSTANCE))
+ {
+ if (IsRootDeviceInstanceID(pDeviceID))
+ return CR_NO_SUCH_DEVINST;
+ }
+
RtlInitUnicodeString(&PlugPlayData.TargetDeviceInstance,
pDeviceID);
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=02e659d248c78ee5812cb…
commit 02e659d248c78ee5812cb8859b67a4b0de16e6a9
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Thu Mar 31 02:11:52 2022 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Apr 17 04:57:41 2022 +0200
[BOOTDATA] Remove hackish entries that really caused the CDFS to be loaded twice in the LiveCD.
They date back from commit a880f2ee (r9611), and were the root cause for
the bug that was tentatively fixed by commit 81a9ce44e (PR #755).
On Windows, boot file system drivers have either the SERVICE_DEMAND_START
or the SERVICE_DISABLED start type, and only the filesystem to access the
boot media is manually loaded by the OS loader (other FSes that are needed
later are loaded by the FSRecognizer).
Also there is no need to disable NTFS anymore.
---
boot/bootdata/livecd.inf | 6 ------
1 file changed, 6 deletions(-)
diff --git a/boot/bootdata/livecd.inf b/boot/bootdata/livecd.inf
index eae91147fa4..ad88590eb13 100644
--- a/boot/bootdata/livecd.inf
+++ b/boot/bootdata/livecd.inf
@@ -10,15 +10,9 @@ HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
; Default locale for the keyboard layout
HKU,".DEFAULT\Keyboard Layout\Preload","1",0x00000000,"00000409"
-; Cdfs (ISO96660) filesystem driver
-HKLM,"SYSTEM\CurrentControlSet\Services\Cdfs","Start",0x00010001,0x00000000
-
; Cdrom class driver
HKLM,"SYSTEM\CurrentControlSet\Services\Cdrom","Start",0x00010001,0x00000000
-; FIXME: Disable NTFS driver
-HKLM,"SYSTEM\CurrentControlSet\Services\Ntfs","Start",0x00010001,0x00000004
-
; Reset BootExecute to an empty value: AutoChk should not start in MiniNT mode
HKLM,"SYSTEM\CurrentControlSet\Control\Session Manager","BootExecute",0x00010000,""