diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-03-14 07:38:48 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-03-14 07:47:48 -0700 |
| commit | 3ccd5e439da4296d6f2b66ce47075ab20d039676 (patch) | |
| tree | b5546552613b869367d09f444492a0bbcfadcfe0 /src/WixToolset.Core/Compiler_Package.cs | |
| parent | 574785ab1421c9b67336c13ade5c2263e665ca07 (diff) | |
| download | wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.tar.gz wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.tar.bz2 wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.zip | |
Minimize public surface area of Core
Fixes wixtoolset/issues#6374
Diffstat (limited to 'src/WixToolset.Core/Compiler_Package.cs')
| -rw-r--r-- | src/WixToolset.Core/Compiler_Package.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/WixToolset.Core/Compiler_Package.cs b/src/WixToolset.Core/Compiler_Package.cs index 03ba1c40..1dac5399 100644 --- a/src/WixToolset.Core/Compiler_Package.cs +++ b/src/WixToolset.Core/Compiler_Package.cs | |||
| @@ -1024,13 +1024,13 @@ namespace WixToolset.Core | |||
| 1024 | switch (tableName) | 1024 | switch (tableName) |
| 1025 | { | 1025 | { |
| 1026 | case "CreateFolder": | 1026 | case "CreateFolder": |
| 1027 | specialPermissions = Common.FolderPermissions; | 1027 | specialPermissions = LockPermissionConstants.FolderPermissions; |
| 1028 | break; | 1028 | break; |
| 1029 | case "File": | 1029 | case "File": |
| 1030 | specialPermissions = Common.FilePermissions; | 1030 | specialPermissions = LockPermissionConstants.FilePermissions; |
| 1031 | break; | 1031 | break; |
| 1032 | case "Registry": | 1032 | case "Registry": |
| 1033 | specialPermissions = Common.RegistryPermissions; | 1033 | specialPermissions = LockPermissionConstants.RegistryPermissions; |
| 1034 | break; | 1034 | break; |
| 1035 | default: | 1035 | default: |
| 1036 | this.Core.UnexpectedElement(node.Parent, node); | 1036 | this.Core.UnexpectedElement(node.Parent, node); |
| @@ -1059,9 +1059,9 @@ namespace WixToolset.Core | |||
| 1059 | break; | 1059 | break; |
| 1060 | default: | 1060 | default: |
| 1061 | var attribValue = this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib); | 1061 | var attribValue = this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib); |
| 1062 | if (!this.Core.TrySetBitFromName(Common.StandardPermissions, attrib.Name.LocalName, attribValue, bits, 16)) | 1062 | if (!this.Core.TrySetBitFromName(LockPermissionConstants.StandardPermissions, attrib.Name.LocalName, attribValue, bits, 16)) |
| 1063 | { | 1063 | { |
| 1064 | if (!this.Core.TrySetBitFromName(Common.GenericPermissions, attrib.Name.LocalName, attribValue, bits, 28)) | 1064 | if (!this.Core.TrySetBitFromName(LockPermissionConstants.GenericPermissions, attrib.Name.LocalName, attribValue, bits, 28)) |
| 1065 | { | 1065 | { |
| 1066 | if (!this.Core.TrySetBitFromName(specialPermissions, attrib.Name.LocalName, attribValue, bits, 0)) | 1066 | if (!this.Core.TrySetBitFromName(specialPermissions, attrib.Name.LocalName, attribValue, bits, 0)) |
| 1067 | { | 1067 | { |
