aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs
index eff94e80..6edbdd1c 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs
@@ -314,18 +314,19 @@ namespace WixToolset.Core.WindowsInstaller.Bind
314 break; 314 break;
315 315
316 case ColumnType.Object: 316 case ColumnType.Object:
317 if (null != row[i]) 317 var path = row.FieldAsString(i);
318 if (null != path)
318 { 319 {
319 needStream = true; 320 needStream = true;
320 try 321 try
321 { 322 {
322 record.SetStream(i + 1, row.FieldAsString(i)); 323 record.SetStream(i + 1, path);
323 } 324 }
324 catch (Win32Exception e) 325 catch (Win32Exception e)
325 { 326 {
326 if (0xA1 == e.NativeErrorCode) // ERROR_BAD_PATHNAME 327 if (0xA1 == e.NativeErrorCode) // ERROR_BAD_PATHNAME
327 { 328 {
328 throw new WixException(ErrorMessages.FileNotFound(row.SourceLineNumbers, row.FieldAsString(i))); 329 throw new WixException(ErrorMessages.FileNotFound(row.SourceLineNumbers, path));
329 } 330 }
330 else 331 else
331 { 332 {