[bug] Mount state is not being removed after unmount on Windows #65

This commit is contained in:
2025-10-21 13:16:49 -05:00
parent ea9a25816d
commit 050f004716

View File

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