Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ionescu007/SimpleVisor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorionescu007 <aionescu+git@gmail.com>2016-08-30 00:44:21 +0300
committerionescu007 <aionescu+git@gmail.com>2016-08-30 00:44:21 +0300
commitd9177eedf1993573e06f36beb41455ac36a76d42 (patch)
treebb11c409f0450f1dd1b38b4cf62904b883c4b28f
parent00b06d061bd8c60e99e1b4f52c95e918ef2181b9 (diff)
Fix sign extension bug.
-rw-r--r--shvvp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shvvp.c b/shvvp.c
index 7dd961b..57b6431 100644
--- a/shvvp.c
+++ b/shvvp.c
@@ -160,7 +160,7 @@ ShvVpUnloadCallback (
// If SimpleVisor is disabled for some reason, CPUID won't return anything
// so don't free any memory. It will unfortunately end up leaked.
//
- vpData = (PSHV_VP_DATA)((UINT64)cpuInfo[0] << 32 | cpuInfo[1]);
+ vpData = (PSHV_VP_DATA)((UINT64)cpuInfo[0] << 32 | (UINT32)cpuInfo[1]);
if (vpData != NULL)
{
ShvOsFreeContiguousAlignedMemory(vpData);