﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1541	_WinAPI_FillRect not x64 safe	Ascend4nt	Jpm	"This code from the _WinAPI_FillRect UDF is not properly created for x64 mode. ""dword"" is not the same size as ""handle"" in x64 mode.  This conditional statement should be modified:
{{{
If IsPtr($hBrush) Then
	$aResult = DllCall(""user32.dll"", ""int"", ""FillRect"", ""handle"", $hDC, ""ptr"", $ptrRect, ""handle"", $hBrush)
Else
	$aResult = DllCall(""user32.dll"", ""int"", ""FillRect"", ""handle"", $hDC, ""ptr"", $ptrRect, ""dword"", $hBrush)
EndIf
}}}
Instead of two alternate calls to FillRect, one would suffice.  The If/Else can be removed, and the last parameter can be changed to ""dword_ptr"":
{{{
$aResult = DllCall(""user32.dll"", ""int"", ""FillRect"", ""handle"", $hDC, ""ptr"", $ptrRect, ""dword_ptr"", $hBrush)
}}}
"	Bug	closed	3.3.7.0	AutoIt	3.3.6.0	None	Fixed	_WinAPI_FillRect UDF	
