Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 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 Changed 9 years ago by Emiel Wieldraaijer

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 Changed 9 years ago by Emiel Wieldraaijer

When using 0xFFFFFFFF it writes the correct Hex Value

comment:3 Changed 9 years ago by Jpm

  • Resolution set to Works For Me
  • Status changed from new to closed

Just extra quote

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

and it works "fine" at least under Win7 X86

comment:4 Changed 9 years ago by Emiel Wieldraaijer

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")

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.