From 3decea0bef00d46d445cdc0cc9c05d792e2ddad9 Mon Sep 17 00:00:00 2001 From: Alessandro Pilotti Date: Sun, 7 Sep 2014 16:40:44 +0300 Subject: [PATCH] Get-FileHash Powershell 2 compatibility change --- GetFileHash.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GetFileHash.ps1 b/GetFileHash.ps1 index 0819bc7..a9d299a 100644 --- a/GetFileHash.ps1 +++ b/GetFileHash.ps1 @@ -31,7 +31,7 @@ function Get-FileHash { } finally { $f.Close() - if($sham) { $sham.Dispose() } + if($sham) { $sham.Clear() } } } }