From 467b30e19e506ecb4b1e9ed9c4d7528d77db0228 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Sat, 9 Jul 2022 16:57:31 +0200 Subject: [PATCH 2/2] Log writes to rootdir registry entry --- mount.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mount.cc b/mount.cc index f63edd4..0136396 100644 --- a/mount.cc +++ b/mount.cc @@ -135,6 +135,12 @@ create_install_root () mbox (NULL, IDS_MOUNT_REGISTRY_KEY_FAILED, MB_OK | MB_ICONWARNING); RegCloseKey (key); + Log (LOG_TIMESTAMP) << "Registry value set: HKEY_" + << (root_scope == IDC_ROOT_USER ? "CURRENT_USER\\" + : "LOCAL_MACHINE\\") + << buf << "\\rootdir = \"" << get_root_dir () << "\"" + << endLog; + // The mount table is already in the right shape at this point. // Reading it again is not necessary. //read_mounts (std::string ()); -- 2.36.1