From 57b41de95d1fd5abe1adaf9736f6461d03bfbd86 Mon Sep 17 00:00:00 2001 From: Dmitry Cherepanov Date: Thu, 24 Feb 2011 13:01:01 +0300 Subject: [PATCH] 6996708: The event on the tray icon does not trigger and there is no message printed Reviewed-by: art, ant --- jdk/src/windows/native/sun/windows/awt_TrayIcon.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jdk/src/windows/native/sun/windows/awt_TrayIcon.cpp b/jdk/src/windows/native/sun/windows/awt_TrayIcon.cpp index e26491902bb..e43c8130405 100644 --- a/jdk/src/windows/native/sun/windows/awt_TrayIcon.cpp +++ b/jdk/src/windows/native/sun/windows/awt_TrayIcon.cpp @@ -200,10 +200,9 @@ void AwtTrayIcon::InitNID(UINT uID) m_nid.cbSize = (BYTE *)(&m_nid.guidItem) - (BYTE *)(&m_nid.cbSize); break; case 6: // WIN_XP - // Uncomment these two lines when moving to VS2008 -// m_nid.cbSize = (BYTE *)(&m_nid.hBalloonIcon) - (BYTE *)(&m_nid.cbSize); -// break; - default: // WIN_VISTA? + m_nid.cbSize = (BYTE *)(&m_nid.hBalloonIcon) - (BYTE *)(&m_nid.cbSize); + break; + default: // WIN_VISTA m_nid.cbSize = sizeof(m_nid); break; }