aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/WindowsInstaller/Rows/FileRow.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/WindowsInstaller/Rows/FileRow.cs')
-rw-r--r--src/WixToolset.Data/WindowsInstaller/Rows/FileRow.cs17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/WixToolset.Data/WindowsInstaller/Rows/FileRow.cs b/src/WixToolset.Data/WindowsInstaller/Rows/FileRow.cs
index 673d2315..cd3660e4 100644
--- a/src/WixToolset.Data/WindowsInstaller/Rows/FileRow.cs
+++ b/src/WixToolset.Data/WindowsInstaller/Rows/FileRow.cs
@@ -5,7 +5,6 @@ namespace WixToolset.Data.WindowsInstaller.Rows
5 using System; 5 using System;
6 using System.Diagnostics; 6 using System.Diagnostics;
7 using System.Globalization; 7 using System.Globalization;
8 using WixToolset.Data.Msi;
9 8
10 /// <summary> 9 /// <summary>
11 /// Specialization of a row for the file table. 10 /// Specialization of a row for the file table.
@@ -174,8 +173,8 @@ namespace WixToolset.Data.WindowsInstaller.Rows
174 { 173 {
175 get 174 get
176 { 175 {
177 bool compressedFlag = (0 < (this.Attributes & MsiInterop.MsidbFileAttributesCompressed)); 176 bool compressedFlag = (0 < (this.Attributes & WindowsInstallerConstants.MsidbFileAttributesCompressed));
178 bool noncompressedFlag = (0 < (this.Attributes & MsiInterop.MsidbFileAttributesNoncompressed)); 177 bool noncompressedFlag = (0 < (this.Attributes & WindowsInstallerConstants.MsidbFileAttributesNoncompressed));
179 178
180 if (compressedFlag && noncompressedFlag) 179 if (compressedFlag && noncompressedFlag)
181 { 180 {
@@ -200,22 +199,22 @@ namespace WixToolset.Data.WindowsInstaller.Rows
200 if (YesNoType.Yes == value) 199 if (YesNoType.Yes == value)
201 { 200 {
202 // these are mutually exclusive 201 // these are mutually exclusive
203 this.Attributes |= MsiInterop.MsidbFileAttributesCompressed; 202 this.Attributes |= WindowsInstallerConstants.MsidbFileAttributesCompressed;
204 this.Attributes &= ~MsiInterop.MsidbFileAttributesNoncompressed; 203 this.Attributes &= ~WindowsInstallerConstants.MsidbFileAttributesNoncompressed;
205 } 204 }
206 else if (YesNoType.No == value) 205 else if (YesNoType.No == value)
207 { 206 {
208 // these are mutually exclusive 207 // these are mutually exclusive
209 this.Attributes |= MsiInterop.MsidbFileAttributesNoncompressed; 208 this.Attributes |= WindowsInstallerConstants.MsidbFileAttributesNoncompressed;
210 this.Attributes &= ~MsiInterop.MsidbFileAttributesCompressed; 209 this.Attributes &= ~WindowsInstallerConstants.MsidbFileAttributesCompressed;
211 } 210 }
212 else // not specified 211 else // not specified
213 { 212 {
214 Debug.Assert(YesNoType.NotSet == value); 213 Debug.Assert(YesNoType.NotSet == value);
215 214
216 // clear any compression bits 215 // clear any compression bits
217 this.Attributes &= ~MsiInterop.MsidbFileAttributesCompressed; 216 this.Attributes &= ~WindowsInstallerConstants.MsidbFileAttributesCompressed;
218 this.Attributes &= ~MsiInterop.MsidbFileAttributesNoncompressed; 217 this.Attributes &= ~WindowsInstallerConstants.MsidbFileAttributesNoncompressed;
219 } 218 }
220 } 219 }
221 } 220 }