It is currently May 6th, 2024, 6:11 am

[bug] Weird result from RegValue

Report bugs with the Rainmeter application and suggest features.
Stix
Posts: 3
Joined: May 1st, 2011, 9:40 pm

[bug] Weird result from RegValue

Post by Stix »

Hi, found a bug methinks ....

I'm using v2.1.0 beta r800 64bit on Win7 x64, and when trying to read the ~MHz REG_DWORD from
HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0 ,
Rainmeter is returning a totally incorrect number ie: 106847664 ( this number also changes on every config refresh )
It should be returning 3368.

Here's the code :

Code: Select all

[Measure_CPU_MHz]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=HARDWARE\DESCRIPTION\System\CentralProcessor\0
RegValue="~MHz"

[Meter_CPU_MHz]
Meter=String
MeasureName=Measure_CPU_MHz
FontSize=24
Text="%1"
I reverted back to Rainmeter v2 and the correct value is returned.

Can anyone else confirm this behaviour ?

Thanks.
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: [bug] Weird result from RegValue

Post by Chewtoy »

I can confirm that this seems to be happening with any REG_DWORD value.
I'm on Win7 64bit, r800.
The value, for me, should be 91b (2331), yet I get 91816672, but that changes whenever I do a Refresh All (not when I just refresh the skin).
REG_SZ works fine, but ANY REG_DWORD gives this result.
I don't think, therefore I'm not.
Stix
Posts: 3
Joined: May 1st, 2011, 9:40 pm

Re: [bug] Weird result from RegValue

Post by Stix »

Yeah , REG_DWORD's seem to be the problem.

Tried reading the "Platform ID" DWORD and got the same result - gibberish returned.

Thanks for confirming.
User avatar
spx
Developer
Posts: 686
Joined: August 15th, 2009, 2:41 pm
Location: Osaka, JPN

Re: [bug] Weird result from RegValue

Post by spx »

Fixed in r803.
Wait for next beta.
Stix
Posts: 3
Joined: May 1st, 2011, 9:40 pm

Re: [bug] Weird result from RegValue

Post by Stix »

Excellent :thumbup:

Thanks