From 9694f3953994c0501d930e1d775d4859382e3e3e Mon Sep 17 00:00:00 2001
From: Serge Gautherie <reactos-git_serge_171003@gautherie.fr>
Date: Thu, 12 Nov 2020 01:22:46 +0100
Subject: [BTRFS] read_registry(): Force 'no_pnp = 1'

Workaround HACK.

CORE-17469

diff --git a/drivers/filesystems/btrfs/registry.c b/drivers/filesystems/btrfs/registry.c
index 3f70cf8..d6228c1 100644
--- a/drivers/filesystems/btrfs/registry.c
+++ b/drivers/filesystems/btrfs/registry.c
@@ -815,7 +815,13 @@ void read_registry(PUNICODE_STRING regpath, bool refresh) {
     get_registry_value(h, L"NoRootDir", REG_DWORD, &mount_no_root_dir, sizeof(mount_no_root_dir));
 
     if (!refresh)
+#ifndef __REACTOS__
         get_registry_value(h, L"NoPNP", REG_DWORD, &no_pnp, sizeof(no_pnp));
+#else
+        // HACK: CORE-17469 workaround.
+        FIXME("Setting no_pnp = 1\n");
+        no_pnp = 1;
+#endif
 
     if (mount_flush_interval == 0)
         mount_flush_interval = 1;
