Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (31 - 33 of 3868)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Ticket Resolution Summary Owner Reporter
#90 Fixed RunAs fails for a Limited User if run-as user's Profile is loaded Valik DaveF
Description

Using beta 3.2.11.0 on XP SP2:

If the RunAs function is called in a script by a limited user, the RunAs function will fail if the target run-as user's Profile is already loaded; as in the case that another process has already been invoked with the run-as user's credentials with the option to load the user's profile. The failure occurs whether or not RunAs is called with the flag to force-load the run-as user's profile, and whether or not AutoIt spawned the earlier process that loaded the run-as user's profile.

Example code:

; N.B. MUST BE RUN AS A LIMITED USER TO EXHIBIT FAILURE
; declare yourself
Dim $ourPID, $ourPID0, $ourRead
; Run an initial process as the desired user
; This is only significant in this example in that
; it pre-loads the target user's profile; we could
; have right-clicked a program and chosen to Run As...
; this user and achieved the same effect.
$ourPID0 = RunAs("is", @ComputerName, "smacksmack", 1, @SystemDir & '\notepad.exe', @SystemDir)
; Run child task with option to access STDOUT
$ourPID = RunAs("is", @ComputerName, "youwantanother?", 1, @ComSpec & " /c set", @SystemDir, @SW_HIDE, 2)
; Read the child task's STDOUT output
While 1
  $ourRead &= StdoutRead($ourPID)
  If @error Then ExitLoop
WEnd
; Display result
MsgBox(0, "Debug", @AutoItVersion & " yields:" & @CRLF & $ourRead)
#92 Fixed DllStructGetData() truncation Valik Valik
Description

DllStructGetData() truncates the last element of a (char/wchar) array to ensure null termination. The code needs modified to secretly allocate a larger buffer and secretly insert a null terminator outside the user-requested bounds so the user's data is not altered.

This is a display-only issue, the underlying data is not changed.

#93 Fixed ControlTreeView() - sets @error=1 even if command works OK Jpm Zedna
Description

Touched commands: Check, Select, Expand

Checking/Selecting/Expanding is done in treeview but @error is set to 1 though. Note: Exists command works OK and doesn't set @error to 1

Here is test script: No messageboxes should appear but for Check, Select, Expand commands they appear with value=1 (@error)

#include <GUIConstants.au3>

$gui = GUICreate("ControlTreeview test", 212, 212)
$treeview = GUICtrlCreateTreeView(6, 6, 200, 160, BitOR($TVS_HASBUTTONS, $TVS_HASLINES, $TVS_LINESATROOT, $TVS_CHECKBOXES), $WS_EX_CLIENTEDGE)
$h_tree = ControlGetHandle($gui, "", $treeview)

$root = GUICtrlCreateTreeViewItem("Root", $treeview)
$item1 = GUICtrlCreateTreeViewItem("Item 1", $root)
$item2 = GUICtrlCreateTreeViewItem("Item 2", $root)
$item3 = GUICtrlCreateTreeViewItem("Item 3", $root)
$item4 = GUICtrlCreateTreeViewItem("Item 4", $root)
$item41 = GUICtrlCreateTreeViewItem("Item 41", $item4)
$item42 = GUICtrlCreateTreeViewItem("Item 42", $item4)
$item5 = GUICtrlCreateTreeViewItem("Item 5", $root)

GUISetState(@SW_SHOW)
ControlTreeView ($gui, "", $h_tree, "Expand", "Root")

$ret = ControlTreeView ($gui, "", $h_tree, "Exists", "Root|Item 4")
If @error Then MsgBox(0,"Exists",@error) ; here it is OK
;~ MsgBox(0,"Exists return",$ret) ; here it is OK
ControlTreeView ($gui, "", $h_tree, "Check", "Root|Item 4")
If @error Then MsgBox(0,"Check",@error) ; here should be @error = 0 but it is 1
ControlTreeView ($gui, "", $h_tree, "Select", "Root|Item 4")
If @error Then MsgBox(0,"Select",@error) ; here should be @error = 0 but it is 1
ControlTreeView ($gui, "", $h_tree, "Expand", "Root|Item 4")
If @error Then MsgBox(0,"Expand",@error) ; here should be @error = 0 but it is 1

While 1
	$msg = GUIGetMsg()
	Select
		Case $msg = $GUI_EVENT_CLOSE
			ExitLoop
	EndSelect
WEnd

Note: This script could be used in AutoIt helpfile as example script for ControlTreeView() - there is no example script

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Note: See TracQuery for help on using queries.