Skip to content

Commit 6fd54bf

Browse files
Fix for unit tests empty file string.
1 parent d0dad6a commit 6fd54bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

BinaryObjectScanner/FileType/InstallShieldCAB.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public bool Extract(string file, string outDir, bool includeDebug)
2424
/// <inheritdoc/>
2525
public bool Extract(Stream? stream, string file, string outDir, bool includeDebug)
2626
{
27-
file = Path.GetFullPath(file);
27+
if (file != "")
28+
file = Path.GetFullPath(file);
2829
// Get the name of the first cabinet file or header
2930
var directory = Path.GetDirectoryName(file);
3031
string noExtension = Path.GetFileNameWithoutExtension(file);

0 commit comments

Comments
 (0)