From 04a7a5692f0a3b656208f3dbd5655458e86e0caa Mon Sep 17 00:00:00 2001 From: spx Date: Mon, 2 May 2011 07:43:42 +0000 Subject: [PATCH] Fixed an issue that Measure=Registry returns wrong DWORD value. --- Library/MeasureRegistry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/MeasureRegistry.cpp b/Library/MeasureRegistry.cpp index 7697e374..859de6a4 100644 --- a/Library/MeasureRegistry.cpp +++ b/Library/MeasureRegistry.cpp @@ -71,7 +71,7 @@ bool CMeasureRegistry::Update() switch(type) { case REG_DWORD: - m_Value = *((LPDWORD)&data); + m_Value = *((LPDWORD)data); m_StringValue.erase(); break; @@ -83,7 +83,7 @@ bool CMeasureRegistry::Update() break; case REG_QWORD: - m_Value = (double)((LARGE_INTEGER*)&data)->QuadPart; + m_Value = (double)((LARGE_INTEGER*)data)->QuadPart; m_StringValue.erase(); break;