thqby / ahk2_lib

MIT License
197 stars 26 forks source link

#Warn in DllCall variable arr_data #25

Closed rafael4129 closed 11 months ago

rafael4129 commented 11 months ago

when set '#Warn', the variable local arr_data appears to never be assigned a value.

    014: Static ComObjParam := A_AhkVersion < "2" ? "ComObjParameter" : "ComObject"
017: arr := ComObjArray(0xC, 1)

▶ 019: DllCall("oleaut32\SafeArrayAccessData", "ptr", ComObjValue(arr), "ptr*", arr_data) 021: Return {ref: %ComObjParam%(0x400C, arrdata), : arr, base: base} 022: }

Using AHK 2.04 an latest version of WebView2

thqby commented 11 months ago

I didn't write these codes.