File tree 2 files changed +12
-0
lines changed
brave_vpn_wireguard_service
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ const char kLogFile[] = "log-file";
29
29
} // namespace
30
30
31
31
int main (int argc, char * argv[]) {
32
+ // Process Mitigation Redirection Policy
33
+ PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY signature = {0 };
34
+ DWORD dwSize = sizeof (signature);
35
+ signature.EnforceRedirectionTrust = 1 ;
36
+ SetProcessMitigationPolicy (ProcessRedirectionTrustPolicy, &signature, dwSize);
37
+
32
38
// Initialize the CommandLine singleton from the environment.
33
39
base::CommandLine::Init (argc, argv);
34
40
auto * command_line = base::CommandLine::ForCurrentProcess ();
Original file line number Diff line number Diff line change @@ -71,6 +71,12 @@ std::optional<int> ProcessUserLevelCommands(
71
71
}
72
72
73
73
int APIENTRY wWinMain (HINSTANCE instance, HINSTANCE prev, wchar_t *, int ) {
74
+ // Process Mitigation Redirection Policy
75
+ PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY signature = {0 };
76
+ DWORD dwSize = sizeof (signature);
77
+ signature.EnforceRedirectionTrust = 1 ;
78
+ SetProcessMitigationPolicy (ProcessRedirectionTrustPolicy, &signature, dwSize);
79
+
74
80
// Initialize the CommandLine singleton from the environment.
75
81
base::CommandLine::Init (0 , nullptr );
76
82
auto * command_line = base::CommandLine::ForCurrentProcess ();
You can’t perform that action at this time.
0 commit comments