-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Remove MapSecurityZoneWithUrlmon method and related code #7103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove MapSecurityZoneWithUrlmon method and related code #7103
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neither "PR Summary" nor original issue have a description why this change is necessary.
@@ -139,19 +139,11 @@ internal static SecurityZone GetFileSecurityZone(string filePath) | |||
Diagnostics.Assert(Path.IsPathRooted(filePath), "Caller makes sure the path is rooted."); | |||
Diagnostics.Assert(Utils.FileExists(filePath), "Caller makes sure the file exists."); | |||
string sysRoot = System.Environment.GetEnvironmentVariable("SystemRoot"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable is not used anymore.
@@ -448,60 +403,6 @@ private static class NativeMethods | |||
internal static extern uint GetACP(); | |||
|
|||
public const int S_OK = 0x00000000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this one still used anywhere?
@@ -448,60 +403,6 @@ private static class NativeMethods | |||
internal static extern uint GetACP(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function doesn't seem to be used anymore.
@TravisEz13 "edited" after I posted the request. :) |
@anmenaga I'm not sure you get notified of edits and the timing wasn't perfectly clear. |
Looks like the test failure is
|
Not sure if that can be fixed in this PR |
PR Summary
Fixes #6919: Removes the
MapSecurityZoneWithUrlmon
method and the native interface it uses.MapSecurityZoneWithUrlmon
uses an unsupported API call, and this ensures we use a supported API to improve quality.PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
to the beginning of the title and remove the prefix when the PR is ready.[feature]
if the change is significant or affects feature tests