[fix] fix Windows privacy guard and iOS host tool selection

This commit is contained in:
dijunkun
2026-10-27 13:00:34 +08:00
parent b07f457e76
commit 4506c27e7c
2 changed files with 16 additions and 3 deletions
@@ -305,7 +305,10 @@ bool PrivacyBandGuard::Windows(std::vector<PrivacyBandWindow>& windows,
}
void PrivacyBandGuard::SetLocalUnlockAllowed(bool allowed) {
if (!shared_ || InterlockedExchange(&shared_->allow_local_unlock, allowed) == allowed) return;
const LONG value = allowed ? 1 : 0;
if (!shared_ ||
InterlockedExchange(&shared_->allow_local_unlock, value) == value)
return;
std::vector<PrivacyBandWindow> windows;
std::string error;
if (Windows(windows, error))