﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1288	DLLStructSetData behavior with binary variant data	evilertoaster	Valik	"As demonstrated in [http://www.autoitscript.com/forum/index.php?showtopic=105133 this thread]

There might be some expected behavior when using DLLStructSetData with binary variants. Some examples:
Consider $a:
{{{
$a=DllStructCreate('byte[4]')
}}}
These two lines:


{{{
DllStructSetData($a,1,Binary('0xAABB'),2)
}}}
and

{{{
DllStructSetData($a,1,Number(Binary('0xAABB'),2)
}}}

Produce different results. (The first only sets 0xAA).


{{{
DllStructSetData($a,1,Binary('0xFFFFFFFF'),1)
}}}
 and

{{{
DllStructSetData($a,1,Binary('0xFFFFFFFF'))
}}}
Also produce different results, the first only sets 0xFF. Even though according to the documentation, omitting the 1 as the index argument should be identical to specifying 1.

Help file says:
""If the element is an array, you need to specify which index to set, otherwise it sets index 1.""
"	Bug	closed	3.3.1.6	AutoIt	3.3.0.0	None	Fixed		
