Modify

#1207 closed Bug (Fixed)

_GUICtrlIpAddress_Set ($hIPAddress, "24.168.2.128") displays 2.128.168.24

Reported by: robinacjohnston Owned by: Jpm
Milestone: 3.3.1.2 Component: AutoIt
Version: 3.3.1.1 Severity: None
Keywords: Cc:

Description

The _GUICtrlIpAddress_Set function when run on the 3.3.1.1 beta gets the octets muddled up. 1.2.3.4 would display as 3.4.1.2.

If you want to see this in action run the example code in the help file and it displays 2.128.24.168 instead of 24.168.2.128

Attachments (0)

Change History (2)

comment:1 by anonymous, on Oct 6, 2009 at 4:07:10 PM

This should be 4-3-2-1 not 2-1-4-3 in function below within GUIIPAddress.au3 include file

Func _GUICtrlIpAddress_SetEx($hWnd, $tIP)

If $Debug_IP Then UDF_ValidateClassName($hWnd, $tIP)
_SendMessage($hWnd, $IPM_SETADDRESS, 0, _

_WinAPI_MakeLong(BitOR(DllStructGetData($tIP, "Field2"), 0x100 * DllStructGetData($tIP, "Field1")), _
BitOR(DllStructGetData($tIP, "Field4"), 0x100 * DllStructGetData($tIP, "Field3"))))

EndFunc ;==>_GUICtrlIpAddress_SetEx

comment:2 by Jpm, on Oct 8, 2009 at 5:31:57 PM

Milestone: 3.3.1.2
Owner: set to Jpm
Resolution: Fixed
Status: newclosed

Fixed in version: 3.3.1.2

Modify Ticket

Action
as closed The owner will remain Jpm.

Add Comment


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