On 21/07/2026 08:37, Matthias Baesken wrote:
On Thu, 16 Jul 2026 12:11:48 GMT, Matthias Baesken<[email protected]>  wrote:

There is some handling for ancient Windows versions in AwtTrayIcon::InitNID 
which most likely can be removed.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).
_Mailing list message from [Simon Nash](mailto:[email protected]) on 
[client-libs-dev](mailto:[email protected]):_

On 20/07/2026 08:01, Matthias Baesken wrote: Thanks for this. I have done some 
web searching and from what I have found, it appears that the code in the PR 
webrev that always sets the size to sizeof(m_nid) is correct for Windows 7 and 
later. This means that the code in the PR webrev is correct as it stands.

Simon
Hi Simon, thanks for checking !
Do you have some link from your web searching that we could add e.g. to the JBS 
issue ?

-------------

PR Comment:https://git.openjdk.org/jdk/pull/31930#issuecomment-5031325984
See the Remarks section of this web page:

https://learn.microsoft.com/en-us/windows/win32/api/shellapi/ns-shellapi-notifyicondataw

This section contains a table that says for Windows Vista and later, cbSize 
must be set to sizeof(NOTIFYICONDATA).

Reply via email to