[bug] Mount state is not being removed after unmount on Windows #65
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2025-10-21 13:18:45 -05:00
parent 050f004716
commit a021d8cbd4

View File

@@ -176,7 +176,8 @@ auto lock_data::set_mount_state(bool active, std::string_view mount_location,
if (::RegCreateKeyExA( if (::RegCreateKeyExA(
HKEY_CURRENT_USER, HKEY_CURRENT_USER,
fmt::format(R"(SOFTWARE\{}\Lock\{})", REPERTORY_DATA_NAME, dir_id_), fmt::format(R"(SOFTWARE\{}\Lock\{})", REPERTORY_DATA_NAME, dir_id_)
.c_str(),
0, nullptr, 0, KEY_ALL_ACCESS, nullptr, &key, 0, nullptr, 0, KEY_ALL_ACCESS, nullptr, &key,
nullptr) != ERROR_SUCCESS) { nullptr) != ERROR_SUCCESS) {
return false; return false;