FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Partial fix for Appx · PowerShell/PowerShell@e25eaac · GitHub

Commit e25eaac

Browse files
committed
Partial fix for Appx
1 parent 6899d20 commit e25eaac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/System.Management.Automation/engine/NativeCommandProcessor.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,9 +1106,9 @@ private static bool IsWindowsApplication(string fileName)
11061106
return false;
11071107
}
11081108

1109-
using var stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
11101109
try
11111110
{
1111+
using var stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
11121112
var peheaders = new PortableExecutable.PEHeaders(stream);
11131113
var peheader = peheaders.PEHeader;
11141114
return peheader is not null && peheader.Subsystem == PortableExecutable.Subsystem.WindowsGui;

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL