Modify ↓
#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 , 16 years ago
comment:3 by , 16 years ago
| Resolution: | → Works For Me |
|---|---|
| Status: | new → closed |
Just extra quote
RegWrite($HKCU & "\Software\Microsoft\Test", "Test", "REG_DWORD", 4294967295)
and it works "fine" at least under Win7 X86
comment:4 by , 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")
Note:
See TracTickets
for help on using tickets.

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)