We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent befdb20 commit 2106908Copy full SHA for 2106908
1 file changed
lib/core.ps1
@@ -16,8 +16,8 @@ function Get-PESubsystem($filePath) {
16
} catch {
17
return -1
18
} finally {
19
- $binaryReader.Close()
20
- $fileStream.Close()
+ if ($null -ne $binaryReader) { $binaryReader.Close() }
+ if ($null -ne $fileStream) { $fileStream.Close() }
21
}
22
23
0 commit comments