https://bugs.winehq.org/show_bug.cgi?id=53014
Carlo Bramini carlo.bramix@libero.it changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |carlo.bramix@libero.it
--- Comment #12 from Carlo Bramini carlo.bramix@libero.it --- I confirm that NtUserGetIconInfo() modifies the content of the UNICODE_STRING structures for returning the number of characters and NOT the bytes, although the MSDN says that the Length field must be something different. So, the attached patch is wrong.
As you can see, I copied the content of GetIconInfoExW() into a tiny C project made with VisualStudio 2022 and I tried to execute it into the debugger. From attached screenshot, the result is evident. The same thing happens with both 32bit and 64bit executables.
Tests made with Windows 11 Pro 64bit.