mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
runner: initialize COM security, so toast notifications work in elevated context from non-admin account (#5314)
This commit is contained in:
@@ -116,19 +116,6 @@ struct typed_storage
|
||||
}
|
||||
};
|
||||
|
||||
template<typename Callable>
|
||||
struct on_scope_exit
|
||||
{
|
||||
Callable _f;
|
||||
on_scope_exit(Callable f) :
|
||||
_f{ std::move(f) } {}
|
||||
|
||||
~on_scope_exit()
|
||||
{
|
||||
_f();
|
||||
}
|
||||
};
|
||||
|
||||
template<class... Ts>
|
||||
struct overloaded : Ts...
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user