[bug] Mount state is not being removed after unmount on Windows #65
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user