ChrisS85/AutoHotkey_L — comment on commit 8a9ade4fb72dedf74218898431e889d94d89ba1e
File:  line 0
By Lexikos:

Isn't szID always empty unless you actually define the id="" attribute?

I thought it would be cleaner to use GetString() than relying on a type-cast to implicitly invoke the same function, but I'd forgotten that the macro does not construct a CString' object on the Unicode build. The following should be used instead:

(LPTSTR)(LPCTSTR)CStringTCharFromWCharIfNeeded(item.szUrl)

Both type-casts are required on the ANSI build: one to invoke GetString() and the other to remove the const qualifier.