﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
4089	Fixing __ArrayDisplay_SortArrayStruct dll declaration	anonymous	Jpm	"How to reproduct :
Global Const $hDll = 0
#include <Array.au3>

What happened :
{{{
"".\AutoIt3\Include\ArrayDisplayInternals.au3""(830,40) : error: $hDll previously declared as a 'Const'.
	Static $hDll = DllOpen(""kernel32.dll"")
}}}

What should happen :
Nothing, everything should work

Solution :
add ""Local"" before ""Static in __ArrayDisplay_SortArrayStruct 

{{{
	Local Static $hDll = DllOpen(""kernel32.dll"")
	Local Static $hDllComp = DllOpen(""shlwapi.dll"")
}}}

If main script doesn't declare $hDll as const, nothing bad happen, each $hDll keep its value, so i think it's more a ""false positive"" from AU3Check

it only happen if Global Const $hDll = 0 is BEFORE Array.au3 include"	Bug	closed	3.3.19.0	Au3Check	3.3.18.0	None	Fixed		
