mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed an issue that Measure=Registry returns wrong DWORD value.
This commit is contained in:
parent
293c86dea5
commit
04a7a5692f
@ -71,7 +71,7 @@ bool CMeasureRegistry::Update()
|
|||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
case REG_DWORD:
|
case REG_DWORD:
|
||||||
m_Value = *((LPDWORD)&data);
|
m_Value = *((LPDWORD)data);
|
||||||
m_StringValue.erase();
|
m_StringValue.erase();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ bool CMeasureRegistry::Update()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case REG_QWORD:
|
case REG_QWORD:
|
||||||
m_Value = (double)((LARGE_INTEGER*)&data)->QuadPart;
|
m_Value = (double)((LARGE_INTEGER*)data)->QuadPart;
|
||||||
m_StringValue.erase();
|
m_StringValue.erase();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user