[bug] Mount state is not being removed after unmount on Windows #65
This commit is contained in:
@@ -176,7 +176,7 @@ 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_),
|
||||||
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user