Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#1555 closed Bug (Works For Me)

Regwrite Reg_Dword does not write correct value

Reported by: Emiel Wieldraaijer Owned by:
Milestone: Component: AutoIt
Version: 3.3.6.0 Severity: None
Keywords: RegWrite Reg_Dword Cc:

Description

Hi All,

The following code does not write hex ffffffff but hex 7fffffff.

$HKCU = "HKEY_CURRENT_USER"
If @OSArch = "X64" Then
	$HKCU &= "64"
EndIf

Msgbox (64, "HEX", Hex(4294967295))

RegWrite($HKCU & "\Software\Microsoft\Test", "Test", "REG_DWORD", "4294967295")
MsgBox(64, "Information",  RegRead($HKCU & "\Software\Microsoft\Test\", "Test"))

Attachments (0)

Change History (4)

comment:1 by Emiel Wieldraaijer, 16 years ago

If i use 2147483647 (which is the result of the above) instead of 4294967295 it return the correct value. So it looks like it only happens when using 4294967295 (FFFFFFFF)

comment:2 by Emiel Wieldraaijer, 16 years ago

When using 0xFFFFFFFF it writes the correct Hex Value

comment:3 by J-Paul Mesnage, 16 years ago

Resolution: Works For Me
Status: newclosed

Just extra quote

RegWrite($HKCU & "\Software\Microsoft\Test", "Test", "REG_DWORD", 4294967295)

and it works "fine" at least under Win7 X86

comment:4 by Emiel Wieldraaijer, 16 years ago

Without the "" it works perfect

but if you read the help the "" are always used

or there must be a modification to the helpfile or this is still a bug on X64

Help File Example

; Write a single REG_SZ value
RegWrite("HKEY_CURRENT_USER\Software\Test", "TestKey", "REG_SZ", "Hello this is a test")

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.