else { ::AppendMenuW( mTrayIconMenu, MF_STRING, TURBO_QUIT, exitText.get() ); }
nsNativeAppSupportWin::SetupSysTrayIcon() {    // Messages go to the hidden window.    mIconData.hWnd  = (HWND)MessageWindow();    // Icon is our default application icon.    mIconData.hIcon =  ::LoadIcon( ::GetModuleHandle( NULL ), IDI_APPLICATION ),    // Tooltip is the brand short name.    mIconData.szTip[0] = 0;    nsCOMPtr<nsIStringBundleService> svc( do_GetService( NS_STRINGBUNDLE_CONTRACTID ) );    if ( svc ) {        nsCOMPtr<nsIStringBundle> bundle1;        svc->CreateBundle( "chrome://global/locale/brand.properties", getter_AddRefs( bundle1 ) );        if ( bundle1 ) {            nsXPIDLString tooltip;            bundle1->GetStringFromName( NS_LITERAL_STRING( "brandShortName" ).get(),                                        getter_Copies( tooltip ) );            // (damned strings...)            nsAutoString autoTip( tooltip );            nsAutoCString tip( autoTip );                ::strncpy( mIconData.szTip, (const char*)tip, sizeof mIconData.szTip - 1 );        }        // Build menu.        nsCOMPtr<nsIStringBundle> bundle2;        svc->CreateBundle( "chrome://communicator/locale/profile/profileManager.properties",                           getter_AddRefs( bundle2 ) );        nsAutoString exitText;        if ( bundle2 ) {            nsXPIDLString text;            bundle2->GetStringFromName( NS_LITERAL_STRING( "exitButton" ).get(),                                        getter_Copies( text ) );            exitText = (const PRUnichar*)text;        }        if ( exitText.IsEmpty() ) {            // Fall back to this.            exitText = NS_LITERAL_STRING( "Exit" );        }        // Create menu and add item.        mTrayIconMenu = ::CreatePopupMenu();        ::AppendMenuW( mTrayIconMenu, MF_STRING, TURBO_QUIT, exitText.get() );        if ( ::GetLastError() == ERROR_CALL_NOT_IMPLEMENTED ) {            char* exitACPText = GetACPString( exitText );            if ( exitACPText ) {               ::AppendMenu( mTrayIconMenu, MF_STRING, TURBO_QUIT,  exitACPText );               delete [] exitACPText ;            }             }        else {            ::AppendMenuW( mTrayIconMenu, MF_STRING, TURBO_QUIT, exitText.get() );        }    }        // Add the tray icon.    ::Shell_NotifyIcon( NIM_ADD, &mIconData );}