diff options
Diffstat (limited to 'Capstone/Capstone.psm1')
-rw-r--r-- | Capstone/Capstone.psm1 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Capstone/Capstone.psm1 b/Capstone/Capstone.psm1 index b9829e7..6f55c1e 100644 --- a/Capstone/Capstone.psm1 +++ b/Capstone/Capstone.psm1 @@ -148,6 +148,11 @@ function Get-CSDisassembly $Disassembly = New-Object Capstone.Capstone($Architecture, $Mode) + if ($Disassembly.Version -ne [Capstone.Capstone]::BindingVersion) + { + Write-Error "capstone.dll version ($([Capstone.Capstone]::BindingVersion.ToString())) should be the same as libcapstone.dll version. Otherwise, undefined behavior is likely." + } + if ($Syntax) { switch ($Syntax) |