mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-16 23:25:03 +00:00
fixing bug 134745 - mail notification icon in system tray is the wrong icon (yellow triangle). r=bhuvan, sr=mscott
This commit is contained in:
parent
006d4e404b
commit
f66b8ba40b
@ -718,14 +718,22 @@ PRUint32 nsMessengerWinIntegration::GetToolTipSize()
|
||||
void nsMessengerWinIntegration::SetToolTipStringOnIconData(const PRUnichar * aToolTipString)
|
||||
{
|
||||
if (!aToolTipString) return;
|
||||
|
||||
PRUint32 toolTipBufSize = GetToolTipSize();
|
||||
|
||||
if (mUseWideCharBiffIcon)
|
||||
::wcsncpy( mWideBiffIconData.szTip, aToolTipString, GetToolTipSize() );
|
||||
{
|
||||
::wcsncpy( mWideBiffIconData.szTip, aToolTipString, toolTipBufSize);
|
||||
if (wcslen(aToolTipString) >= toolTipBufSize)
|
||||
mWideBiffIconData.szTip[toolTipBufSize - 1] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
nsCString asciiToolTip;
|
||||
asciiToolTip.AssignWithConversion(aToolTipString);
|
||||
::strncpy( mAsciiBiffIconData.szTip, asciiToolTip.get(), GetToolTipSize() );
|
||||
if (asciiToolTip.Length() >= toolTipBufSize)
|
||||
mAsciiBiffIconData.szTip[toolTipBufSize - 1] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user