aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Capstone/Capstone.psm15
-rw-r--r--Capstone/lib/capstone.dllbin91136 -> 91136 bytes
2 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)
diff --git a/Capstone/lib/capstone.dll b/Capstone/lib/capstone.dll
index e42f64f..809932b 100644
--- a/Capstone/lib/capstone.dll
+++ b/Capstone/lib/capstone.dll
Binary files differ