Modify

Opened 15 years ago

Closed 15 years ago

#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 Changed 15 years ago by anonymous

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 Changed 15 years ago by Jpm

  • Milestone set to 3.3.1.2
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version: 3.3.1.2

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 owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.